Tim Glasgow
2 years ago
5 changed files with 162 additions and 7 deletions
@ -0,0 +1,38 @@ |
|||||
|
import React, { Component } from "react"; |
||||
|
import { Text, View } from "react-native"; |
||||
|
import { connect } from "react-redux"; |
||||
|
import { bindActionCreators } from "redux"; |
||||
|
|
||||
|
class Game extends Component { |
||||
|
constructor(props){ |
||||
|
super(props) |
||||
|
this.state = { |
||||
|
|
||||
|
} |
||||
|
|
||||
|
//props.someNavAction, 5000
|
||||
|
//setTimeout(null, 5000);
|
||||
|
} |
||||
|
|
||||
|
render () { |
||||
|
return ( |
||||
|
<View> |
||||
|
<Text>test</Text> |
||||
|
</View> |
||||
|
); |
||||
|
}; |
||||
|
} |
||||
|
|
||||
|
function mapStateToProps(){ |
||||
|
|
||||
|
} |
||||
|
|
||||
|
const mapDispatchToProps = (dispatch) => { |
||||
|
let actions = { |
||||
|
//...someActionsGroup
|
||||
|
}; |
||||
|
|
||||
|
return bindActionCreators(actions, dispatch); |
||||
|
} |
||||
|
|
||||
|
export default connect(mapStateToProps, mapDispatchToProps)(Game); |
@ -0,0 +1,38 @@ |
|||||
|
import React, { Component } from "react"; |
||||
|
import { Text, View } from "react-native"; |
||||
|
import { connect } from "react-redux"; |
||||
|
import { bindActionCreators } from "redux"; |
||||
|
|
||||
|
class HighScore extends Component { |
||||
|
constructor(props){ |
||||
|
super(props) |
||||
|
this.state = { |
||||
|
|
||||
|
} |
||||
|
|
||||
|
//props.someNavAction, 5000
|
||||
|
//setTimeout(null, 5000);
|
||||
|
} |
||||
|
|
||||
|
render () { |
||||
|
return ( |
||||
|
<View> |
||||
|
<Text>test</Text> |
||||
|
</View> |
||||
|
); |
||||
|
}; |
||||
|
} |
||||
|
|
||||
|
function mapStateToProps(){ |
||||
|
|
||||
|
} |
||||
|
|
||||
|
const mapDispatchToProps = (dispatch) => { |
||||
|
let actions = { |
||||
|
//...someActionsGroup
|
||||
|
}; |
||||
|
|
||||
|
return bindActionCreators(actions, dispatch); |
||||
|
} |
||||
|
|
||||
|
export default connect(mapStateToProps, mapDispatchToProps)(HighScore); |
@ -0,0 +1,38 @@ |
|||||
|
import React, { Component } from "react"; |
||||
|
import { Text, View } from "react-native"; |
||||
|
import { connect } from "react-redux"; |
||||
|
import { bindActionCreators } from "redux"; |
||||
|
|
||||
|
class Home extends Component { |
||||
|
constructor(props){ |
||||
|
super(props) |
||||
|
this.state = { |
||||
|
|
||||
|
} |
||||
|
|
||||
|
//props.someNavAction, 5000
|
||||
|
//setTimeout(null, 5000);
|
||||
|
} |
||||
|
|
||||
|
render () { |
||||
|
return ( |
||||
|
<View> |
||||
|
<Text>test</Text> |
||||
|
</View> |
||||
|
); |
||||
|
}; |
||||
|
} |
||||
|
|
||||
|
function mapStateToProps(){ |
||||
|
|
||||
|
} |
||||
|
|
||||
|
const mapDispatchToProps = (dispatch) => { |
||||
|
let actions = { |
||||
|
//...someActionsGroup
|
||||
|
}; |
||||
|
|
||||
|
return bindActionCreators(actions, dispatch); |
||||
|
} |
||||
|
|
||||
|
export default connect(mapStateToProps, mapDispatchToProps)(Home); |
@ -0,0 +1,38 @@ |
|||||
|
import React, { Component } from "react"; |
||||
|
import { Text, View } from "react-native"; |
||||
|
import { connect } from "react-redux"; |
||||
|
import { bindActionCreators } from "redux"; |
||||
|
|
||||
|
class Settings extends Component { |
||||
|
constructor(props){ |
||||
|
super(props) |
||||
|
this.state = { |
||||
|
|
||||
|
} |
||||
|
|
||||
|
//props.someNavAction, 5000
|
||||
|
//setTimeout(null, 5000);
|
||||
|
} |
||||
|
|
||||
|
render () { |
||||
|
return ( |
||||
|
<View> |
||||
|
<Text>test</Text> |
||||
|
</View> |
||||
|
); |
||||
|
}; |
||||
|
} |
||||
|
|
||||
|
function mapStateToProps(){ |
||||
|
|
||||
|
} |
||||
|
|
||||
|
const mapDispatchToProps = (dispatch) => { |
||||
|
let actions = { |
||||
|
//...someActionsGroup
|
||||
|
}; |
||||
|
|
||||
|
return bindActionCreators(actions, dispatch); |
||||
|
} |
||||
|
|
||||
|
export default connect(mapStateToProps, mapDispatchToProps)(Settings); |
Loading…
Reference in new issue