Skip to content

Commit ff7e24f

Browse files
cortinicofacebook-github-bot
authored andcommitted
@DoNotStrip ReactModalHostView to prevent instacrash on release (#52195)
Summary: Pull Request resolved: #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 d9ec57a commit ff7e24f

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
@@ -70,6 +70,7 @@ import com.facebook.yoga.annotations.DoNotStrip
7070
* addition and removal of views to the DialogRootViewGroup.
7171
*/
7272
@SuppressLint("ViewConstructor")
73+
@DoNotStrip
7374
public class ReactModalHostView(context: ThemedReactContext) :
7475
ViewGroup(context), LifecycleEventListener {
7576

0 commit comments

Comments
 (0)