我的反应原生项目中有以下 App.js:
class App extends Component {
render() {
return (
<ApolloProvider store={store} client={client}>
<AppWithNavigationState />
</ApolloProvider>
);
}
}
export default App = codePush(App);
我正在尝试将 aws amplify 身份验证器添加到我的项目(https://github.com/aws/aws-amplify/blob/master/media/quick_start.md#react-native-development),但步骤告诉我添加:
export default withAuthenticator(App);
^^ 当我已经将 codePush 包裹在我要导出的 App 组件周围时,我该怎么做?