Skip to content

Commit 417c5c6

Browse files
cortinicocipolleschi
authored andcommitted
@DoNotStrip ReactModalHostView to prevent instacrash on release (facebook#52195)
Summary: Pull Request resolved: facebook#52195 RNTester is currently instacrashing on release due to use minifying the `ReactModalHostView`. In that class there is a static method that is accessed by JNI so we should annotated this class as `DoNotStrip` as otherwise we won't be able to access it. Changelog: [Internal] [Changed] - Reviewed By: cipolleschi Differential Revision: D77148010 fbshipit-source-id: c5b2758fa2919bc1f5885433202a45b4c3f8ff99
1 parent a5ec1cd commit 417c5c6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packages/react-native/ReactAndroid/src/main/java/com/facebook/react/views/modal/ReactModalHostView.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ import com.facebook.yoga.annotations.DoNotStrip
6969
* addition and removal of views to the DialogRootViewGroup.
7070
*/
7171
@SuppressLint("ViewConstructor")
72+
@DoNotStrip
7273
public class ReactModalHostView(context: ThemedReactContext) :
7374
ViewGroup(context), LifecycleEventListener {
7475

0 commit comments

Comments
 (0)