@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:
Nicola Corti authored and Facebook GitHub Bot committed 2025-06-23 07:24:47 -07:00
1 parent d9ec57a3b9
commit ff7e24f19a
1 file changed
+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 {