Skip to content

Instantly share code, notes, and snippets.

@dsternlicht
Last active November 13, 2017 08:05
Show Gist options
  • Select an option

  • Save dsternlicht/c83d5e25527f8a52af5f52037d95d1d3 to your computer and use it in GitHub Desktop.

Select an option

Save dsternlicht/c83d5e25527f8a52af5f52037d95d1d3 to your computer and use it in GitHub Desktop.
Login screen (no localization)
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