jjzjj

RCTAsyncLocalStorage

全部标签

javascript - React Native Expo 弹出 : No visible @interface for 'RCTAsyncLocalStorage' declares the selector 'initWithStorageDirectory:' 后问题

我刚从expo中退出,一切顺利,但当我尝试在Xcode中运行我的ios应用程序时,我现在遇到以下错误:Novisible@interfacefor'RCTAsyncLocalStorage'declarestheselector'initWithStorageDirectory:'这是我的package.json的一部分"dependencies":{"axios":"^0.17.1","expo":"^23.0.6","lodash":"^4.17.4","moment":"^2.20.1","react":"16.0.0","react-native":"0.50.3","reac

ios - 从 ios native 代码访问存储在 AsyncStorage 中的数据( objective-c )

我需要从iOS原生ObjectiveC代码访问存储在AsyncStorage中的数据。这是同步数据所必需的,而不是将App事件发送到JS,然后将其发送回native代码。 最佳答案 我刚遇到同样的问题。我的解决方案是将代码移至native端。在iOS上:#import#importRCTResponseSenderBlockcompletion=^(NSArray*response){NSString*theme=response[1][0][0][1];//SetupRCTRootViewwithinitialProperties

ios - 从 ios native 代码访问存储在 AsyncStorage 中的数据( objective-c )

我需要从iOS原生ObjectiveC代码访问存储在AsyncStorage中的数据。这是同步数据所必需的,而不是将App事件发送到JS,然后将其发送回native代码。 最佳答案 我刚遇到同样的问题。我的解决方案是将代码移至native端。在iOS上:#import#importRCTResponseSenderBlockcompletion=^(NSArray*response){NSString*theme=response[1][0][0][1];//SetupRCTRootViewwithinitialProperties