diff --git a/ReactAndroid/src/main/java/com/facebook/react/fabric/mounting/MountingManager.java b/ReactAndroid/src/main/java/com/facebook/react/fabric/mounting/MountingManager.java index dc143386b8ee59..c7a2fa5c557294 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/fabric/mounting/MountingManager.java +++ b/ReactAndroid/src/main/java/com/facebook/react/fabric/mounting/MountingManager.java @@ -94,8 +94,11 @@ private void dropView(View view) { mTagToViewState.remove(reactTag); Context context = view.getContext(); - mViewFactory.recycle( - (ThemedReactContext) context, Assertions.assertNotNull(viewManager).getName(), view); + if (context instanceof ThemedReactContext) { + // We only recycle views that were created by RN (its context is instance of ThemedReactContext) + mViewFactory.recycle( + (ThemedReactContext) context, Assertions.assertNotNull(viewManager).getName(), view); + } } /** Releases all references to react root tag. */