On Android, the content of the preview disappears when doing any of the following actions
- Rotate the device (this has been already addressed by listening to this action and recreating the WebView which is not an optimal solution)
- Switch between light/dark mode
The content is rendered within a WebView using the react-native-webview library, originally I thought that this was a bug caused by the library but I tested on a test app the same version (11.6.2) and I couldn’t reproduce the issue. This means that probably the culprit is related to Android native code and the main app, maybe the native view is being dismissed when a device setting is changed (rotation, light/dark mode, etc.).