Skip to content

Commit a66da2d

Browse files
committed
FIX: Api errors
1 parent cbcd30c commit a66da2d

9 files changed

Lines changed: 3087 additions & 2174 deletions

File tree

App.js

Lines changed: 15 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,26 @@
1-
2-
import React from 'react'
3-
import { NavigationContainer } from '@react-navigation/native';
4-
import { createStackNavigator } from '@react-navigation/stack';
1+
import React from "react";
2+
import { NavigationContainer } from "@react-navigation/native";
3+
import { createStackNavigator } from "@react-navigation/stack";
54

65
import Login from "./pages/login";
76
import Signup from "./pages/signup";
87
import Home from "./pages/Home";
9-
import Routers from './pages/login_ok/Router';
10-
8+
import Routers from "./pages/login_ok/Router";
119

1210
export default function App() {
1311
const Stack = createStackNavigator();
1412

1513
return (
16-
17-
<NavigationContainer >
18-
<Stack.Navigator initialRouteName="Routers" screenOptions={{headerShown:false}}>
19-
<Stack.Screen name="Login" component={Login} />
20-
<Stack.Screen name="Signup" component={Signup} />
21-
<Stack.Screen name="Home" component={Home} />
22-
<Stack.Screen name="Routers" component={Routers} />
23-
</Stack.Navigator>
24-
</NavigationContainer>
25-
14+
<NavigationContainer>
15+
<Stack.Navigator
16+
initialRouteName="Home"
17+
screenOptions={{ headerShown: false }}
18+
>
19+
<Stack.Screen name="Login" component={Login} />
20+
<Stack.Screen name="Signup" component={Signup} />
21+
<Stack.Screen name="Home" component={Home} />
22+
<Stack.Screen name="Routers" component={Routers} />
23+
</Stack.Navigator>
24+
</NavigationContainer>
2625
);
2726
}
28-

babel.config.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
module.exports = function(api) {
1+
module.exports = function (api) {
22
api.cache(true);
33
return {
4-
presets: ['babel-preset-expo'],
4+
presets: ["babel-preset-expo"],
55
};
66
};

0 commit comments

Comments
 (0)