Skip to content

Instantly share code, notes, and snippets.

@jqed-xuereb
Created August 30, 2017 08:52
Show Gist options
  • Save jqed-xuereb/25d815229047112326e45212d11b2b15 to your computer and use it in GitHub Desktop.
Save jqed-xuereb/25d815229047112326e45212d11b2b15 to your computer and use it in GitHub Desktop.
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