created useFetchUserAttributes custom hooks

This commit is contained in:
heyethereum
2024-07-08 23:09:17 +08:00
parent af07ecb804
commit 688e3e6f9a
3 changed files with 79 additions and 12 deletions

View File

@@ -7,8 +7,7 @@ import SettingsScreen from './screens/SettingsScreen';
import { QRCodeContext } from './types';
import CustomTabBar from './components/CustomTabBar';
import { Button } from 'react-native';
import { Authenticator, useAuthenticator, withAuthenticator } from '@aws-amplify/ui-react-native';
import { withAuthenticator } from '@aws-amplify/ui-react-native';
import { Amplify } from 'aws-amplify';
import config from './src/aws-exports';
import { enableScreens } from 'react-native-screens';
@@ -17,11 +16,6 @@ enableScreens();
Amplify.configure(config);
function SignOutButton() {
const { signOut } = useAuthenticator();
return <Button title="Sign Out" onPress={signOut} />;
}
const Tab = createBottomTabNavigator();
const App: React.FC = () => {