Created
August 30, 2017 08:52
-
-
Save jqed-xuereb/25d815229047112326e45212d11b2b15 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 from 'react'; | |
import ReactNative from 'react-native'; | |
import { AppRegistry,Text,View,Button,} from 'react-native'; | |
import { StackNavigator } from 'react-navigation' | |
import AccountFields from './emailandpass' | |
//import login from './login' | |
//import confirmation from './confirmation' | |
//import success from './success' | |
class Loginscreen extends React.Component{ | |
static navigtionOptions= { | |
title: 'Welcome to LearnD', | |
} | |
render() { | |
const { navigate } = this.props.navigation; | |
return( | |
<View> | |
<Text>Have you got an account ?</Text> | |
<Button | |
onPress={()=> navigate('AccountFields')} | |
title="Register here !" | |
/> | |
</View> | |
); | |
} | |
}; | |
const App = StackNavigator({ | |
Home: { screen: Loginscreen}, | |
AccountFields: {screen: AccountFields }, | |
}); | |
AppRegistry.registerComponent('ReactNavigation', () => App) | |
module.exports = App |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment