Browse Source

import syntax

pull/1/head
Tim Glasgow 2 years ago
parent
commit
eb1c92aa12
  1. 38
      squarenotsquare/components/Game.js
  2. 38
      squarenotsquare/components/HighScore.js
  3. 38
      squarenotsquare/components/Home.js
  4. 38
      squarenotsquare/components/Settings.js
  5. 17
      squarenotsquare/components/Splash.js

38
squarenotsquare/components/Game.js

@ -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);

38
squarenotsquare/components/HighScore.js

@ -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);

38
squarenotsquare/components/Home.js

@ -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);

38
squarenotsquare/components/Settings.js

@ -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);

17
squarenotsquare/components/Splash.js

@ -1,6 +1,6 @@
import { Component } from "react";
import { View } from "react-native";
import { connect, Connect } from "react-redux";
import React, { Component } from "react";
import { Text, View } from "react-native";
import { connect } from "react-redux";
import { bindActionCreators } from "redux";
class Splash extends Component {
@ -17,20 +17,23 @@ class Splash extends Component {
render () {
return (
<View>
<Text>test</Text>
</View>
);
};
}
function mapStateToProps(){
return {
//system: state.system,
}
}
function mapDispatchToProps(){
const mapDispatchToProps = (dispatch) => {
let actions = {
//...someActionsGroup
}
};
return bindActionCreators(actions, dispatch);
}

Loading…
Cancel
Save