React-native-navigation: Examples For new versions.

Created on 31 Jan 2018  路  1Comment  路  Source: wix/react-native-navigation

Issue Description

We haven't any example for creating new pages. for example we need push screen, but we didn't know what we must send as a containerId. Can you send us any example of container?
Now we get error " unknown LayoutType name, props"? What must be name and Props.

Steps to Reproduce / Code Snippets / Screenshots

[FILL THIS OUT - It will be extremely helpful]
screen shot 2018-01-31 at 2 53 15 pm


Environment

  • React Native Navigation version: V2
  • React Native version: 0.51
  • Platform(s) (iOS, Android, or both?): IOS, Android
  • Device info (Simulator/Device? OS version? Debug/Release?): Simulator
v2

Most helpful comment

We are still working on a new documentation.
This is the simplest layout example:
```js
Navigation.setRoot({
stack: {
children: [{
component: {
name: 'navigation.playground.TextScreen',
passProps: {
text: 'This is screen 1'
}
}
}],
options: {
topBar: {
title: 'Top bar Title'
}
}
}
}

You can also take a look at the example project main file: https://github.com/wix/react-native-navigation/blob/v2/playground/src/screens/WelcomeScreen.js
It contains different layout usages.

>All comments

We are still working on a new documentation.
This is the simplest layout example:
```js
Navigation.setRoot({
stack: {
children: [{
component: {
name: 'navigation.playground.TextScreen',
passProps: {
text: 'This is screen 1'
}
}
}],
options: {
topBar: {
title: 'Top bar Title'
}
}
}
}

You can also take a look at the example project main file: https://github.com/wix/react-native-navigation/blob/v2/playground/src/screens/WelcomeScreen.js
It contains different layout usages.

Was this page helpful?
0 / 5 - 0 ratings