This commit is contained in:
Mike Fitzpatrick
2019-08-07 17:49:34 -04:00
parent aea9bbda96
commit dfc4daf696
14 changed files with 522 additions and 172 deletions

View File

@@ -1,37 +1,24 @@
import React, { Component } from 'react';
import { Text, View } from 'react-native';
import { Button } from 'react-native-elements';
import FacebookLogin from '../components/Login/FacebookLogin.container.js';
import LocalLogin from '../components/Login/LocalLogin.container.js';
import styles from './SignInOrRegister.styles.js';
export default class SignInOrRegister extends Component {
constructor() {
super(props);
this._doRegistration = this._doRegistration.bind(this);
}
_doRegistration() {
this.props.navigation.navigate('Register');
}
render() {
return (
<View style={styles.container}>
<Text style={styles.title}>Sign In or Register</Text>
<View style={styles.localLogin}>
<LocalLogin />
</View>
<View style={styles.services}>
<FacebookLogin />
</View>
<View style={styles.register}>
<Button title="Signup with Email" onPress={this._doRegistration} />
</View>
export default function SignInOrRegister({ navigation }) {
return (
<View style={styles.container}>
<Text style={styles.title}>Sign In or Register</Text>
<View style={styles.localLogin}>
<LocalLogin />
</View>
);
}
<View style={styles.services}>
<FacebookLogin />
</View>
<View style={styles.register}>
<Button title="Signup with Email" onPress={() => navigation.navigate('Register')} />
</View>
</View>
);
}