Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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'
- }
- }
- }
- }
- }
- });
Add Comment
Please, Sign In to add comment