created useFetchUserAttributes custom hooks
This commit is contained in:
8
App.tsx
8
App.tsx
@@ -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 = () => {
|
||||
|
||||
Reference in New Issue
Block a user