Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import React, { Component } from "react";
- import {
- StyleSheet,
- TextInput,
- ScrollView,
- TouchableOpacity,
- Image
- } from "react-native";
- import {
- View,
- Form,
- Label,
- Icon,
- Text,
- Container,
- Content,
- Button
- } from "native-base";
- import { connect } from "react-redux";
- import Modal from "react-native-modal";
- import globalStyles, { colors, height, width } from "../customLib/globalStyle";
- import { registerUser } from "../Redux/actions/auth";
- class RegisterScreen extends Component {
- registerAction = () => {
- this.props.updatePage(0);
- };
- render() {
- return (
- <Container>
- ...
- <TouchableOpacity
- onPress={() => this.registerAction()}
- >
- <Text
- style={[
- globalStyles.font,
- { color: "white", fontSize: 18, fontWeight: "bold" }
- ]}
- >
- Daftar Sekarang
- </Text>
- </TouchableOpacity>
- ...
- </Container>
- );
- }
- }
- const mapStateToProps = ({ auth }) => ({
- isLoading: auth.isLoading
- });
- const mapDispatchToProps = dispatch => ({
- registerUser: param => dispatch(registerUser(param))
- });
- export default connect(
- mapStateToProps,
- mapDispatchToProps
- )(RegisterScreen);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement