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 { connect } from "react-redux"; |
|||
import { bindActionCreators } from "redux"; |
|||
import { useState } from "react"; |
|||
|
|||
class Game extends Component { |
|||
constructor(props){ |
|||
super(props) |
|||
this.state = { |
|||
function Game(props){ |
|||
|
|||
} |
|||
|
|||
//props.someNavAction, 5000
|
|||
//setTimeout(null, 5000);
|
|||
} |
|||
|
|||
render () { |
|||
return ( |
|||
<View> |
|||
<Text>test</Text> |
|||
<Text style={{color: 'black'}}>test</Text> |
|||
</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 { connect } from "react-redux"; |
|||
import { bindActionCreators } from "redux"; |
|||
import { useState } from "react"; |
|||
|
|||
class HighScore extends Component { |
|||
constructor(props){ |
|||
super(props) |
|||
this.state = { |
|||
function HighScore(props){ |
|||
|
|||
} |
|||
|
|||
//props.someNavAction, 5000
|
|||
//setTimeout(null, 5000);
|
|||
} |
|||
|
|||
render () { |
|||
return ( |
|||
<View> |
|||
<Text>test</Text> |
|||
<Text style={{color: 'black'}}>test</Text> |
|||
</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 { connect } from "react-redux"; |
|||
import { bindActionCreators } from "redux"; |
|||
import { useState } from "react"; |
|||
|
|||
class Home extends Component { |
|||
constructor(props){ |
|||
super(props) |
|||
this.state = { |
|||
function Home(props){ |
|||
|
|||
} |
|||
|
|||
//props.someNavAction, 5000
|
|||
//setTimeout(null, 5000);
|
|||
} |
|||
|
|||
render () { |
|||
return ( |
|||
<View> |
|||
<Text>test</Text> |
|||
<Text style={{color: 'black'}}>test</Text> |
|||
</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 { connect } from "react-redux"; |
|||
import { bindActionCreators } from "redux"; |
|||
import { useState } from "react"; |
|||
|
|||
class Settings extends Component { |
|||
constructor(props){ |
|||
super(props) |
|||
this.state = { |
|||
function Settings(props){ |
|||
|
|||
} |
|||
|
|||
//props.someNavAction, 5000
|
|||
//setTimeout(null, 5000);
|
|||
} |
|||
|
|||
render () { |
|||
return ( |
|||
<View> |
|||
<Text>test</Text> |
|||
<Text style={{color: 'black'}}>test</Text> |
|||
</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 { connect } from "react-redux"; |
|||
import { bindActionCreators } from "redux"; |
|||
import { useState } from "react"; |
|||
|
|||
class Splash extends Component { |
|||
constructor(props){ |
|||
super(props) |
|||
this.state = { |
|||
function Splash(props){ |
|||
|
|||
} |
|||
|
|||
//props.someNavAction, 5000
|
|||
//setTimeout(null, 5000);
|
|||
} |
|||
|
|||
render () { |
|||
return ( |
|||
<View> |
|||
<Text>test</Text> |
|||
<Text style={{color: 'black'}}>test</Text> |
|||
</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