import React from 'react';
import { NavigationContainer } from '@react-navigation/native';
import { createStackNavigator } from '@react-navigation/stack';
import Scan from './Scan';
import OtpGen from './OtpGen';
import HomePage from './HomePage';

const Stack = createStackNavigator();

export default function App() {
  return (
    <NavigationContainer>
      <Stack.Navigator>
        <Stack.Screen 
          name="Scan" 
          component={Scan}
        />
        <Stack.Screen 
          name="OtpGen" 
          component={OtpGen} 
        />
        <Stack.Screen 
          name="Home Page" 
          component={HomePage}
        />
      </Stack.Navigator>
    </NavigationContainer>
  );
}
