Skip to content

Instantly share code, notes, and snippets.

@sonnylazuardi
Created July 6, 2017 14:19
Show Gist options
  • Save sonnylazuardi/12ea24b53e31484e66a39fc122e6b654 to your computer and use it in GitHub Desktop.
Save sonnylazuardi/12ea24b53e31484e66a39fc122e6b654 to your computer and use it in GitHub Desktop.
React Native Starter
import React from "react";
import {
StyleSheet,
Text,
View,
TouchableHighlight,
TextInput,
} from "react-native";
import { StackNavigator } from 'react-navigation';
import ScreenA from './src/screens/ScreenA';
import ScreenB from './src/screens/ScreenB';
const App = StackNavigator({
ScreenA: { screen: ScreenA, navigationOptions: { header: null } },
ScreenB: { screen: ScreenB, navigationOptions: { title: 'ScreenB', headerStyle: { marginTop: 24 } } },
}, {
headerMode: 'screen',
cardStyle: {
backgroundColor: '#fff'
},
});
export default App;
yarn add react-navigation react-redux redux
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment