Skip to content

Instantly share code, notes, and snippets.

@datvtwkm
Last active August 31, 2018 12:15
Show Gist options
  • Save datvtwkm/db8cc160403a92b74a94e3015978409c to your computer and use it in GitHub Desktop.
Save datvtwkm/db8cc160403a92b74a94e3015978409c to your computer and use it in GitHub Desktop.
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