我有一个应用程序,我想尝试expo start:网络功能,在解决了I had the error之后,它确实出现了类似AsyncStorage的错误
Can't resolve 'react-native-web/dist/exports/ColorPropType'简单地说,
/Users/xxx/Documents/xxxx/node_modules/react-native-maps/lib/components/MapView.js
Module not found: Can't resolve 'react-native-web/dist/exports/ColorPropType' in '/Users/xxx/Documents/xxxx/node_modules/react-native-maps/lib/components'有人能帮帮我吗?
发布于 2020-10-20 11:41:48
我终于明白了。有像react-native-progress,swiper-flatlist这样的库,它不支持react-native-web。react-native-web工作正在进行中,因此我们忽略了web不支持那些库
为此,我删除了除初始库之外的所有库,即(expo expo-status-bar react-dom react-native react -native web)
然后一个接一个地安装,或者像这样一个模块一个模块地安装(所有redux导航的包,redux-observable的所有包,redux的所有包等等)
在完成一个模块的安装后,expo start:web,并再次重复这个过程,直到我找不到错误的库,就像可能的情况一样(react-native-swiper-flatlist & react-native-progress)
最后,为了测试的目的,忽略了package.json中的那些库。如果可能的话,你也可以使用Platform.OS=="web“之类的平台特定代码。
请使用https://expo.canny.io/feature-requests/p/swiper-flatlist请求功能,并检查其他功能-请求
https://stackoverflow.com/questions/64398590
复制相似问题