Last active
June 23, 2018 02:35
-
-
Save juddey/520ececbc8d94fbf37ee1d12269d69bd to your computer and use it in GitHub Desktop.
RNN-plain
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 from "react"; | |
import { Text } from "react-native"; | |
import { Navigation } from 'react-native-navigation'; | |
class Simple extends React.Component { | |
render() { | |
return (<Text>Hello, I'm Awesome.</Text>); | |
} | |
} | |
Navigation.registerComponent('simple', () => Simple); | |
Navigation.setRoot({ | |
root: { | |
stack: { | |
children: [{ | |
component: { | |
name: 'simple', | |
passProps: { | |
text: 'stack with one child' | |
} | |
} | |
}], | |
options: { | |
topBar: { | |
title: { | |
text: 'Welcome screen' | |
} | |
} | |
} | |
} | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment