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:
Pieter De Baets authored and Facebook GitHub Bot committed 2022-05-23 03:59:47 -07:00
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;
}