[英]Getting "no current user" while i am navigating from a screen to another screen in aws-amplify-react-native
[英]Error "Unable to resolve module aws-amplify-react-native"
我嘗試將我的應用程序與 aws amplify 同步,但發生了這個問題
我的 App.js
import { StatusBar } from 'expo-status-bar';
import { NavigationContainer } from "@react-navigation/native";
import RootNavigator from "./src/navigation/index";
import { Amplify } from "aws-amplify";
import config from "./src/aws-exports";
import { withAuthenticator } from "aws-amplify-react-native";
Amplify.configure(config);
function App() {
return (
<NavigationContainer>
<RootNavigator />
<StatusBar style="light" />
</NavigationContainer>
);
}
export default withAuthenticator(App);
放大版本 10.5.1
我如何解決這個問題
可以嘗試以下步驟:
你也可以嘗試: import { withAuthenticator } from "./node_modules/aws-amplify-react-native";
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.