Last active
November 13, 2017 08:05
-
-
Save dsternlicht/c83d5e25527f8a52af5f52037d95d1d3 to your computer and use it in GitHub Desktop.
Login screen (no localization)
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, { Component } from 'react'; | |
| import { | |
| View, | |
| Text, | |
| Button | |
| } from 'react-native'; | |
| class LoginScreen extends Component { | |
| constructor(props) { | |
| super(props); | |
| this.state = { | |
| username: 'Daniel' | |
| }; | |
| } | |
| render() { | |
| return ( | |
| <View> | |
| <Text>Welcome {this.state.username} to our localized app!</Text> | |
| <Button title="Login"></Button> | |
| <Button title="Sign Up"></Button> | |
| </View> | |
| ); | |
| } | |
| } | |
| export default LoginScreen; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment