Skip to content

Commit c31988c

Browse files
committed
initial commit
0 parents  commit c31988c

File tree

16 files changed

+15504
-0
lines changed

16 files changed

+15504
-0
lines changed

.expo-shared/assets.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"12bb71342c6255bbf50437ec8f4441c083f47cdb74bd89160c15e4f43e52a1cb": true,
3+
"40b842e832070c58deac6aa9e08fa459302ee3f9da492c7e77d93d2fbf4a56fd": true
4+
}

.gitignore

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
node_modules/
2+
.expo/
3+
dist/
4+
npm-debug.*
5+
*.jks
6+
*.p8
7+
*.p12
8+
*.key
9+
*.mobileprovision
10+
*.orig.*
11+
web-build/
12+
13+
# macOS
14+
.DS_Store

App.js

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
import React from 'react';
2+
import { DefaultTheme, NavigationContainer } from '@react-navigation/native';
3+
import { createNativeStackNavigator } from '@react-navigation/native-stack';
4+
import { IconButton, Provider as PaperProvider } from 'react-native-paper';
5+
import HomeScreen from './screens/HomeScreen';
6+
import BookScreen from './screens/BookScreen';
7+
import NameScreen from './screens/NameScreen';
8+
import TitleScreen from './screens/TitleScreen';
9+
import BackScreen from './screens/BackScreen';
10+
11+
const Stack = createNativeStackNavigator()
12+
13+
export default function App() {
14+
return (
15+
<PaperProvider>
16+
<NavigationContainer>
17+
<Stack.Navigator>
18+
<Stack.Screen name="Home" component={HomeScreen} options={{
19+
headerRight: () => (
20+
<IconButton icon="alert-outline" onPress={() => alert('You\'re awesome!')} color={DefaultTheme.colors.notification} />
21+
)
22+
}} />
23+
<Stack.Screen name="Book" component={BookScreen} />
24+
<Stack.Screen name="Back" component={BackScreen} />
25+
<Stack.Screen name="Name" component={NameScreen} />
26+
<Stack.Screen name="Title" component={TitleScreen} options={({route}) => ({title: route.params.title})} />
27+
</Stack.Navigator>
28+
</NavigationContainer>
29+
</PaperProvider>
30+
);
31+
}

app.json

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
{
2+
"expo": {
3+
"name": "react-navigation-tutorial",
4+
"slug": "react-navigation-tutorial",
5+
"version": "1.0.0",
6+
"orientation": "portrait",
7+
"icon": "./assets/icon.png",
8+
"splash": {
9+
"image": "./assets/splash.png",
10+
"resizeMode": "contain",
11+
"backgroundColor": "#ffffff"
12+
},
13+
"updates": {
14+
"fallbackToCacheTimeout": 0
15+
},
16+
"assetBundlePatterns": [
17+
"**/*"
18+
],
19+
"ios": {
20+
"supportsTablet": true
21+
},
22+
"android": {
23+
"adaptiveIcon": {
24+
"foregroundImage": "./assets/adaptive-icon.png",
25+
"backgroundColor": "#FFFFFF"
26+
}
27+
},
28+
"web": {
29+
"favicon": "./assets/favicon.png"
30+
}
31+
}
32+
}

assets/adaptive-icon.png

17.1 KB
Loading

assets/favicon.png

1.43 KB
Loading

assets/icon.png

21.9 KB
Loading

assets/splash.png

46.2 KB
Loading

babel.config.js

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

0 commit comments

Comments
 (0)