-
Notifications
You must be signed in to change notification settings - Fork 0
/
App.js
36 lines (31 loc) · 1.14 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
import * as React from 'react';
import { Text, View, StyleSheet } from 'react-native';
import Constants from 'expo-constants';
// You can import from local files
import CollectionImages from './components/CollectionImages';
import Collections from './components/Collections';
import PreviewImage from './components/PreviewImage';
import { NavigationContainer } from '@react-navigation/native';
import { createStackNavigator } from '@react-navigation/stack';
const Stack = createStackNavigator();
// or any pure javascript modules available in npm
export default function App() {
return (
<View style={styles.container}>
<NavigationContainer>
<Stack.Navigator screenOptions={{ headerShown: false }}>
<Stack.Screen name={'Collections'} component={Collections} />
<Stack.Screen name={'PreviewImage'} component={PreviewImage} />
<Stack.Screen name={'CollectionImages'} component={CollectionImages}/>
</Stack.Navigator>
</NavigationContainer>
</View>
);
}
const styles = StyleSheet.create({
container: {
flex: 1,
justifyContent: 'center',
paddingTop: Constants.statusBarHeight,
},
});