-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathApp.js
More file actions
42 lines (36 loc) · 1.33 KB
/
App.js
File metadata and controls
42 lines (36 loc) · 1.33 KB
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
/* eslint-disable */
import React, { cloneElement } from 'react';
import AudioRecord from './components/AudioRecord';
import Coverpage from './screen/Coverpage';
// import MainAudio from './screen/MainAudio';
import MainAudioRecord from './screen/MainAudioRecord';
import Resultpage from './screen/Resultpage';
import { NavigationContainer } from '@react-navigation/native';
import { createStackNavigator } from '@react-navigation/stack';
import * as Font from 'expo-font';
import { Dimensions } from 'react-native';
import * as SplashScreen from 'expo-splash-screen';
const Stack = createStackNavigator();
function App() {
const [loaded] = Font.useFonts({
CherryBomb: require('./assets/font/CherryBomb-Regular.ttf')
})
if(!loaded) {
return null;
}
return (
<NavigationContainer>
<Stack.Navigator initialRouteName="Cover" screenOptions={{headerShown: false,
cardStyleInterpolator: ({ current }) => ({
cardStyle: {
opacity: current.progress,
},})}}>
<Stack.Screen name="Audio" component={AudioRecord} />
<Stack.Screen name="Cover" component={Coverpage} />
<Stack.Screen name="MainAudioRecord" component={MainAudioRecord} />
<Stack.Screen name="Result" component={Resultpage} />
</Stack.Navigator>
</NavigationContainer>
);
};
export default App;