我正在开发一个React Native应用,看了一些有关创建应用内“分享扩展”的教程。在npm上,我找到了react-native-share-extension模块,了解到如何在Xcode项目中创建扩展,并创建一个新的组件及第二个AppRegistry(从npm示例中可以看到)。
//index.ios.js
import React from 'react'
import { AppRegistry } from 'react-native'
import App from './app.ios'
import Share from './share.ios'
AppRegistry.registerComponent('Sample1', () => App)
AppRegistry.registerComponent('MyShareEx', () => Share)
请问分享组件是否能够访问主应用程序在AsyncStorage中存储的数据?(例如我的登录令牌)
谢谢!