Vydia / react-native-background-upload

Upload files in your React Native app even while it's backgrounded. Supports Android and iOS, including camera roll assets.
MIT License
730 stars 333 forks source link

the app closes automatically when running (Crash) #267

Open luigbren opened 3 years ago

luigbren commented 3 years ago

I have my application running without problems in RN "0.61.5" and react-native-background-upload: v5.7.0, today I updated my project to the RN version "0.64.2" and updated the react-native-background-upload add-on: v6.2.4, now I have Crash problems in Android when I run the application (previously I did not have those problems), in certain occasions in the console I get this message:

ERROR  Warning: Can't perform a React state update on an unmounted component. This is a no-op, but it indicates a memory leak in your application. To fix, cancel all subscriptions and asynchronous tasks in a useEffect cleanup function.

if I uninstall this add-on the application opens without problems, I don't want to install an older version because of the improvements it has made., please, healpme.. Thanks

Edit: I updated this RNBU add-on to v6.3.0 and the closing problem continues, it keeps giving error. (crashing)

n4beel commented 2 years ago

Having same error, the app crashes on any warning

walidsahli commented 2 years ago

can you please check android studio logs ?