brunolemos/react-native-web-monorepo

Will React Native version .60 cause problems

matt-eaton opened this issue · 1 comments

Hi, @brunolemos thx for the repo and your tutorial. I was really struggling with this setup until I came across your article. Quick question I see in your repo is using React Native 0.61, but react-native-web only supports React Native 0.55. Wondering if that will cause any issues down the line.

Looks like RNW has an issue to support 0.60 necolas/react-native-web#1172 (comment)

Thanks

You can use it, but react-native-web still have the 0.55 code, not the updated code.
It should be fine, except for some packages that are being removed from the react-native core (like AsyncStorage), so you need to use the community package and check if they already have web support.

If they don't have web support, then maybe you could do something like this:

index.native.js -> export { Package } from '@react-native-community/package
index.web.js -> export { Package } from 'react-native'