-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathApp.js
50 lines (42 loc) · 2 KB
/
App.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
import {StatusBar} from 'expo-status-bar';
import {useColorScheme} from 'react-native';
import {bColor, headerColor} from "./src/css";
import {createNativeStackNavigator} from "@react-navigation/native-stack";
import {NavigationContainer} from "@react-navigation/native";
import {Index} from "./src/views";
import {Im} from "./src/views/im";
import {Ticket} from "./src/views/ticket";
import {Add} from "./src/views/add";
import {Login} from "./src/views/login";
import {Me} from "./src/views/me";
import {Adds} from "./src/views/adds";
import useNotifications from "./src/utils/useNotifications";
import {navigationRef} from './src/utils/rootNavigation'
import {Protocol} from "./src/views/protocol";
const Stack = createNativeStackNavigator();
function App() {
const schemes = useColorScheme();
useNotifications()
return (
<NavigationContainer ref={navigationRef} >
<StatusBar/>
<Stack.Navigator initialRouteName='index' screenOptions={{
headerTintColor: headerColor(schemes),
headerStyle: bColor(schemes)
}}>
<Stack.Screen name="index" component={Index} options={{title: "小船Im"}}/>
<Stack.Screen name="im" component={Im}/>
<Stack.Screen name="me" component={Me} options={{title: "我的"}} />
<Stack.Screen name="login" component={Login} />
<Stack.Screen name="add" component={Add} options={{title: "新的朋友"}}/>
<Stack.Screen name="adds" component={Adds} options={{title: "管理群"}}/>
<Stack.Screen name="ticket" component={Ticket} options={{title: "激活码"}} />
<Stack.Screen name="protocol" component={Protocol} options={{title: "用户注册及使用APP隐私协议"}} />
</Stack.Navigator>
</NavigationContainer>
)
}
export default App;
// adb install application-49f3506c-de5f-444b-8491-54ab36592f02.apk
// eas build --profile preview
// eas update --branch preview