mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Fabric: New extendend signature of ViewManager::updateState()
Summary: Now, the signature of `updateState` method practically copies the signature of `updateLocalData`. We need that to support all features that `updateLocalData` does support now (to migrate from it). Reviewed By: mdvacca Differential Revision: D15962377 fbshipit-source-id: 61e0af6c191e0c6a358c5859613e9c512f91d29a
This commit is contained in:
1 parent
142af1751b
commit
71f0079809
3 files changed
+14
-4
No files matched your search
@@ -252,7 +252,10 @@ public abstract class ViewManager<T extends View, C extends ReactShadowNode>
|
||||
* Subclasses can implement this method to receive state updates shared between all instances of
|
||||
* this component type.
|
||||
*/
|
||||
public void updateState(@Nonnull T view, StateWrapper stateWrapper) {}
|
||||
public @Nullable Object updateState(
|
||||
@Nonnull T view, ReactStylesDiffMap props, StateWrapper stateWrapper) {
|
||||
return null;
|
||||
}
|
||||
|
||||
public long measure(
|
||||
Context context,
|
||||
|
||||
Reference in new issue
Block a user