-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #48 from mendix/fix/rn-screens
Downgrade rn screens
- Loading branch information
Showing
3 changed files
with
23 additions
and
8 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
diff --git a/node_modules/react-native-screens/android/src/main/java/com/swmansion/rnscreens/ScreenViewManager.kt b/node_modules/react-native-screens/android/src/main/java/com/swmansion/rnscreens/ScreenViewManager.kt | ||
index 5f77aa1..0a67b1f 100644 | ||
--- a/node_modules/react-native-screens/android/src/main/java/com/swmansion/rnscreens/ScreenViewManager.kt | ||
+++ b/node_modules/react-native-screens/android/src/main/java/com/swmansion/rnscreens/ScreenViewManager.kt | ||
@@ -44,7 +44,9 @@ class ScreenViewManager : ViewGroupManager<Screen>(), RNSScreenManagerInterface< | ||
): Any? { | ||
if (BuildConfig.IS_NEW_ARCHITECTURE_ENABLED) { | ||
// fabricViewStateManager should never be null in Fabric. The null check is only for Paper's empty impl. | ||
- view.fabricViewStateManager?.setStateWrapper(stateWrapper) | ||
+ if (stateWrapper != null) { | ||
+ view.fabricViewStateManager?.setStateWrapper(stateWrapper) | ||
+ } | ||
} | ||
return super.updateState(view, props, stateWrapper) | ||
} |