react-native-fast-image icon indicating copy to clipboard operation
react-native-fast-image copied to clipboard

[Android] Image disappears when using react-native-screens

Open MiloszFilimowski opened this issue 3 years ago • 7 comments

Describe 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:

  1. Open the reproduction project
  2. Click next page
  3. Use hardware back button to go back
  4. 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.

MiloszFilimowski avatar Feb 08 '21 09:02 MiloszFilimowski

Did you ever find a solution to this?

trickeyd avatar Apr 08 '21 22:04 trickeyd

I am also hitting this issue after upgrading from createStackNavigator to createNativeStackNavigator. 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?

JEGardner avatar Apr 22 '21 12:04 JEGardner

use this fork https://github.com/safwenbelkassem/react-native-fast-image.git

safwenbelkassem avatar Jun 04 '21 14:06 safwenbelkassem

Hitting the issue when using createNativeStackNavigation in react-navigation 6.x,did author plan to fix it ?

zhuanghongji avatar Sep 18 '21 04:09 zhuanghongji

Same here. I'm using createNativeStackNavigation from react-navigation

enzomanuelmangano avatar Oct 03 '21 21:10 enzomanuelmangano

@safwenbelkassem is this issue still open?

henrymoulton avatar Feb 23 '22 17:02 henrymoulton

I still have the problem, Is someone have a solution for that?

renanbronchart avatar May 01 '23 08:05 renanbronchart