|
@@ -2,6 +2,23 @@
|
2
|
2
|
|
3
|
3
|
In order to make our API homogenous as much as possible, we provide setRoot function that will receive layout of any kind.
|
4
|
4
|
|
|
5
|
+## registerComponent
|
|
6
|
+Registering screens without redux or any wrapping providers is the same as in v1.
|
|
7
|
+```js
|
|
8
|
+Navigation.registerComponent('example.FirstTabScreen', () => FirstTabScreen);
|
|
9
|
+```
|
|
10
|
+
|
|
11
|
+### Registering screens with wrapping provider component
|
|
12
|
+```js
|
|
13
|
+Navigation.registerComponent('navigation.playground.ReduxScreen', () => (props) => (
|
|
14
|
+ <Provider store={reduxStore}>
|
|
15
|
+ <ReduxScreen {...props} />
|
|
16
|
+ </Provider>
|
|
17
|
+), () => ReduxScreen);
|
|
18
|
+```
|
|
19
|
+!>Note that `Navigation.registerComponentWithRedux` is deprecated
|
|
20
|
+
|
|
21
|
+
|
5
|
22
|
## startTabBasedApp(params) -> setRoot({bottomTabs})
|
6
|
23
|
|
7
|
24
|
```js
|