I am testing out Unimodules in my ‘react-native init’ application (never used Expo before). Are Unimodules compatible with the latest react-native
releases i.e. 0.58.6?
I see that ‘Expo SDK v32.0.0 is based once again on React Native 0.57 “September 2018”’. This gave me the impression that I must use 0.57, but it’s unclear whether that is a requirement for Unimodules as well.
Here is more context on the problem I ran into:
I was using react-native@0.57
. Installed @unimodules/core
and started using Expo’s FileSystem without any problems.
I updated to react-native@0.58.6
and started seeing issues with FileSystem.
I call await FileSystem.getInfoAsync(folderPath, {})
to check whether a specific folder exists. No issues.
I then call await FileSystem.copyAsync(image.uri, destPath)
, but the app suddenly freezes and the only message I receive is, /Applications/React Native Debugger.app/Contents/Resources/app.asar/node_modules/react-devtools-cor…:3 [React DevTools] Connection to RN closed
I built the app using Xcode 10 (this is my first time trying to debug an app within Xcode), and I see expo.modules.ExponentFileSystemQueue (serial) 1 Running Block
(please see attached for more details). Is this something I need to fix or is I need to use a different version of react-native
? Thanks!