mirror of
https://github.com/facebook/react-native.git
synced 2026-11-18 20:19:07 +00:00
@DoNotStrip ReactModalHostView to prevent instacrash on release (#52195)
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/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
This commit is contained in:
1 parent
d9ec57a3b9
commit
ff7e24f19a
1 file changed
+1
+1
@@ -70,6 +70,7 @@ import com.facebook.yoga.annotations.DoNotStrip
|
||||
* addition and removal of views to the DialogRootViewGroup.
|
||||
*/
|
||||
@SuppressLint("ViewConstructor")
|
||||
@DoNotStrip
|
||||
public class ReactModalHostView(context: ThemedReactContext) :
|
||||
ViewGroup(context), LifecycleEventListener {
|
||||
|
||||
|
||||
Reference in new issue
Block a user