[Android] Image disappears when using react-native-screens
See original GitHub issueDescribe the bug On Android when I want to close a screen, it first hides the images inside the screen and then pop’s the screen.
To Reproduce Steps to reproduce the behavior if possible, or a link to a reproduction repo:
- Open the reproduction project
- Click next page
- Use hardware back button to go back
- See that image is hidden before transition.
Please take a look at this issue: https://github.com/software-mansion/react-native-screens/issues/797
Seem likes the issue is somewhere between react-native-fast-image and react-native-screens. Based on the reproduction example you can see that using createStackNavigator
instead of createNativeStackNavigator
fixes the issue as well as using Image(from react-native) instead of one from react-native-fast-image.
I also noticed that commenting out requestManager.clear(view)
in onDropViewInstance
in node_modules/react-native-fast-image/android/src/main/java/com/dylanvann/fastimage/FastImageViewManager.java
also fixes the issue.
However I don’t have enough knowledge about any of this projects to investigate in further.
Issue Analytics
- State:
- Created 3 years ago
- Reactions:1
- Comments:6
Top GitHub Comments
I am also hitting this issue after upgrading from
createStackNavigator
tocreateNativeStackNavigator
. The image appears fine, but disappears during the transition when navigating back via either the hardware button or function call from in the app. Does anyone have any ideas?Hitting the issue when using createNativeStackNavigation in react-navigation 6.x,did author plan to fix it ?