-
-
Save onmyway133/a11dc98de277c9c65904c36629a6df8f to your computer and use it in GitHub Desktop.
This file contains hidden or 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 from 'react' | |
| import { StyleSheet, View, Text } from 'react-native' | |
| import {facebookService} from '../../library/FacebookService' | |
| export default class LogInPage extends React.Component { | |
| constructor(props) { | |
| super(props) | |
| this.login = this.login.bind(this) | |
| } | |
| render() { | |
| return ( | |
| <View style={styles.container}> | |
| {facebookService.makeLoginButton((accessToken) => { | |
| this.login() | |
| })} | |
| </View> | |
| ) | |
| } | |
| login() { | |
| this.props.navigation.navigate('MainNavigator') | |
| } | |
| } | |
| const styles = StyleSheet.create({ | |
| container: { | |
| flex: 1, | |
| justifyContent: 'center', | |
| alignItems: 'center', | |
| backgroundColor: '#F5FCFF', | |
| } | |
| }) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment