initial development build for google sign in

This commit is contained in:
heyethereum
2024-07-08 07:47:34 +08:00
parent 82ba150ddc
commit af07ecb804
10 changed files with 4068 additions and 45 deletions

View File

@@ -8,19 +8,15 @@ import CustomTabBar from '../components/CustomTabBar';
// Create a bottom tab navigator
const Tab = createBottomTabNavigator();
// Define custom props for CustomTabBar
interface AppNavigatorProps {
clearScanData: () => void;
}
// Main navigation component
const AppNavigator = ({ clearScanData }: AppNavigatorProps) => {
const AppNavigator = () => {
return (
// Wrap the navigator in a NavigationContainer to manage the navigation tree
<NavigationContainer>
{/* Define the tab navigator with custom tab bar and initial route */}
<Tab.Navigator initialRouteName="QR Scanner" tabBar={props => <CustomTabBar {...props} clearScanData={clearScanData} />}>
<Tab.Navigator initialRouteName="QR Scanner" tabBar={props => <CustomTabBar {...props} />}>
{/* Define each tab with a name and corresponding component */}
<Tab.Screen name="History" component={HistoryScreen} />
@@ -31,4 +27,4 @@ const AppNavigator = ({ clearScanData }: AppNavigatorProps) => {
);
};
export default AppNavigator;
export default AppNavigator;