mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Fix nullability of StateWrapper
Summary: ViewManager does a null-check already, and so inside the `updateState` method, we can safely assume this parameter is no longer nullable. Changelog: [Internal] Reviewed By: JoshuaGross Differential Revision: D36545806 fbshipit-source-id: 92eefa518f11c17b91aa3da2e14066d36fa4f4c2
This commit is contained in:
1 parent
c69c14374d
commit
f2fa2860d1
6 files changed
+6
-17
No files matched your search
@@ -285,7 +285,7 @@ public abstract class ViewManager<T extends View, C extends ReactShadowNode>
|
||||
* this component type.
|
||||
*/
|
||||
public @Nullable Object updateState(
|
||||
@NonNull T view, ReactStylesDiffMap props, @Nullable StateWrapper stateWrapper) {
|
||||
@NonNull T view, ReactStylesDiffMap props, StateWrapper stateWrapper) {
|
||||
return null;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user