Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
RN-RNav-1 - Initial LoginScreen
import React from "react";
import {StyleSheet} from "react-native";
import {Button, Text, View} from "react-native";
class LoginScreen extends React.Component {
render() {
return (
<View style={styles.container}>
<Text style={styles.title}>React navigator - Login</Text>
onPress={() => this.props.navigation.navigate("Internal")}
LoginScreen.navigationOptions = {
title: "Login"
const styles = StyleSheet.create({
container: {
flex: 1,
justifyContent: 'center',
alignItems: 'center',
backgroundColor: '#F5FCFF',
title: {
fontSize: 20,
textAlign: 'center',
margin: 10,
export default LoginScreen;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment