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