Fix Load on QRScanner Page first

This commit is contained in:
2024-06-10 00:41:42 +08:00
parent 68c9e544c4
commit 48bd40c435
2 changed files with 3 additions and 1 deletions

View File

@@ -250,7 +250,7 @@ export default function App() {
return (
<QRCodeContext.Provider value={{ qrCodes, setQrCodes }}>
<NavigationContainer>
<Tab.Navigator tabBar={props => <CustomTabBar {...props} />}>
<Tab.Navigator initialRouteName="QR Scanner" tabBar={props => <CustomTabBar {...props} />}>
<Tab.Screen name="History" component={HistoryScreen} />
<Tab.Screen name="QR Scanner" component={QRScannerScreen} />
<Tab.Screen name="Settings" component={SettingsScreen} />
@@ -260,6 +260,8 @@ export default function App() {
);
}
const styles = StyleSheet.create({
container: {
flex: 1,

Binary file not shown.

Before

Width:  |  Height:  |  Size: 46 KiB

After

Width:  |  Height:  |  Size: 292 KiB