Last active
August 31, 2018 12:15
-
-
Save datvtwkm/db8cc160403a92b74a94e3015978409c to your computer and use it in GitHub Desktop.
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
import React, { Component } from "react"; | |
import { | |
View, | |
Button | |
} from 'react-native'; | |
import { connect } from 'react-redux'; | |
import actionGenerators from "../../../redux/actionGenerators"; | |
@connect(null, ({ | |
login: actionGenerators.auth.login.start | |
})) | |
export default class Login extends Component { | |
render() { | |
return ( | |
<View> | |
<Button title="LOGIN" onPress={this.props.login} /> | |
</View> | |
) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment