This repository has been archived by the owner on Nov 11, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e6f4ba3
commit 19ce0a1
Showing
3 changed files
with
68 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
import { createStackNavigator } from '@react-navigation/stack'; | ||
import { NavigationContainer } from '@react-navigation/native'; | ||
import React from 'react'; | ||
import { StatusBar } from 'react-native'; | ||
import { connect } from 'react-redux'; | ||
|
||
import Main from '../screens/main'; | ||
import Leaderboard from '../screens/leaderboard'; | ||
|
||
const Root = createStackNavigator(); | ||
|
||
class AppNav extends React.Component { | ||
render() { | ||
return ( | ||
<NavigationContainer> | ||
<StatusBar backgroundColor={'#0E0E0E'} /> | ||
<Root.Navigator> | ||
<Root.Screen component={Main} name='Main' /> | ||
<Root.Screen component={Leaderboard} name='Leaderboard' /> | ||
</Root.Navigator> | ||
</NavigationContainer> | ||
); | ||
} | ||
} | ||
|
||
const mapStateToProps = state => ({ | ||
|
||
}); | ||
|
||
export default connect(mapStateToProps)(AppNav); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import React from 'react'; | ||
import { View } from 'react-native'; | ||
import {connect} from 'react-redux'; | ||
|
||
class Screen extends React.Component { | ||
render() { | ||
return ( | ||
<View> | ||
|
||
</View> | ||
); | ||
} | ||
} | ||
|
||
const mapStateToProps = state => ({ | ||
|
||
}); | ||
|
||
export default connect(mapStateToProps)(Screen); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import React from 'react'; | ||
import { View } from 'react-native'; | ||
import {connect} from 'react-redux'; | ||
|
||
class Screen extends React.Component { | ||
render() { | ||
return ( | ||
<View> | ||
|
||
</View> | ||
); | ||
} | ||
} | ||
|
||
const mapStateToProps = state => ({ | ||
|
||
}); | ||
|
||
export default connect(mapStateToProps)(Screen); |