mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Migrate Android view managers to type-safe commands generated by JS codegen
Summary: ## Changelog: [General] [Changed] - Migrate Android view managers to type-safe commands generated by JS codegen. Reviewed By: JoshuaGross, mdvacca Differential Revision: D21406461 fbshipit-source-id: 93584b240314254675a36a58c4d0c0880d6889fb
This commit is contained in:
1 parent
8f90ce26a5
commit
63099c40e6
14 files changed
+55
-27
No files matched your search
@@ -9,13 +9,17 @@ package com.facebook.react.uimanager;
|
||||
|
||||
import android.view.View;
|
||||
import androidx.annotation.Nullable;
|
||||
import com.facebook.react.bridge.ReadableArray;
|
||||
|
||||
/**
|
||||
* This is an interface that must be implemented by classes that wish to take over the
|
||||
* responsibility of setting properties of all views managed by the view manager.
|
||||
* responsibility of setting properties of all views managed by the view manager and executing view
|
||||
* commands.
|
||||
*
|
||||
* @param <T> the type of the view supported by this delegate
|
||||
*/
|
||||
public interface ViewManagerDelegate<T extends View> {
|
||||
void setProperty(T view, String propName, @Nullable Object value);
|
||||
|
||||
void receiveCommand(T view, String commandName, ReadableArray args);
|
||||
}
|
||||
Reference in new issue
Block a user