Created
November 2, 2016 11:11
-
-
Save oertels/b56ccf85f4d56447a2603f760cd77aaf to your computer and use it in GitHub Desktop.
This file contains 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 { Navigation } from 'react-native-navigation'; | |
import { Text, View } from 'react-native'; | |
Navigation.registerComponent('FirstTabScreen', () => <View><Text>Screen 1</Text></View>); | |
Navigation.registerComponent('SecondTabScreen', () => <View><Text>Screen 2</Text></View>); | |
Navigation.startTabBasedApp({ | |
tabs: [ | |
{ | |
label: 'One', | |
screen: 'FirstTabScreen', | |
title: 'Screen One' | |
}, | |
{ | |
label: 'Two', | |
screen: 'SecondTabScreen', | |
title: 'Screen Two' | |
} | |
] | |
}); |
This file contains 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
{ | |
"name": "ReactNativeTest", | |
"version": "0.0.1", | |
"private": true, | |
"scripts": { | |
"start": "node node_modules/react-native/local-cli/cli.js start", | |
"test": "jest" | |
}, | |
"dependencies": { | |
"react": "15.3.2", | |
"react-native": "0.36.1", | |
"react-native-navigation": "^1.0.30" | |
}, | |
"jest": { | |
"preset": "jest-react-native" | |
}, | |
"devDependencies": { | |
"babel-jest": "16.0.0", | |
"babel-preset-react-native": "1.9.0", | |
"jest": "16.0.2", | |
"jest-react-native": "16.0.0", | |
"react-test-renderer": "15.3.2" | |
} | |
} |
Author
oertels
commented
Nov 2, 2016
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment