-
Notifications
You must be signed in to change notification settings - Fork 0
/
App.js
34 lines (29 loc) · 922 Bytes
/
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
import React from 'react'
import { createStackNavigator } from 'react-navigation'
import { Provider as PaperProvider } from 'react-native-paper';
import HomeScreen from './layouts/home-screen/HomeScreen'
import GameGrid from './layouts/game-grid/GameGrid'
import Instructions from './layouts/instructions/Instructions'
import EndGameScreen from './layouts/end-game-screen/EndGameScreen'
import RotatingLettersLevelOne from './games/rotating-letters/level-one/RotatingLettersLevelOne'
import MatchingColors from './games/matching-colors/MatchingColors'
const RootStack = createStackNavigator({
HomeScreen,
GameGrid,
Instructions,
EndGameScreen,
RotatingLettersLevelOne,
MatchingColors
}, {
initialRouteName: 'HomeScreen',
headerMode: 'screen',
})
export default class App extends React.Component {
render() {
return (
<PaperProvider>
<RootStack />
</PaperProvider>
)
}
}