sunnylqm / react-native-storage

local storage wrapper for both react-native and browser. Support size controlling, auto expiring, remote data auto syncing and getting batch data in one query.
MIT License
3.02k stars 268 forks source link

你好 我在升级到v1.0.0的时候ios端报错 NativeModule.RCTAsyncStorage is null 请问应该在xcode中增加相应的配置 #221

Closed 1111mp closed 5 years ago

1111mp commented 5 years ago

你好 我在升级到v1.0.0的时候ios端报错 NativeModule.RCTAsyncStorage is null 请问应该在xcode中增加相应的配置

1111mp commented 5 years ago

自动的react-native link @react-native-community/async-storage对我的项目不起作用 请问应该怎么手动配置

1111mp commented 5 years ago

已经自己解决了 把@react-native-community/async-storage/ios/RNCAsyncStorage.xcodeproj拖到项目的Libraries中 然后在linked Frameworks and Libraries中加入就行 还有一个问题就是@react-native-community/async-storage/index.js中的 export default from './AsyncStorage';的写法会在我的项目中报错 我改成import AsyncStorage from './AsyncStorage'; export default AsyncStorage;就好了不知道是我项目的问题还是算是个bug 非常感谢这个库 很棒