Skip to content

Instantly share code, notes, and snippets.

@juddey
Last active June 23, 2018 02:35
Show Gist options
  • Save juddey/520ececbc8d94fbf37ee1d12269d69bd to your computer and use it in GitHub Desktop.
Save juddey/520ececbc8d94fbf37ee1d12269d69bd to your computer and use it in GitHub Desktop.
RNN-plain
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