Browse Source

Added third-party libraries support doc

yogevbd 6 years ago
parent
commit
d6c068e0eb
2 changed files with 12 additions and 0 deletions
  1. 1
    0
      docs/_sidebar.md
  2. 11
    0
      docs/docs/third-party.md

+ 1
- 0
docs/_sidebar.md View File

@@ -13,6 +13,7 @@
13 13
   - [TopBar Buttons](/docs/topBar-buttons) 
14 14
   - [Animations](/docs/animations)
15 15
   - [Constants](/docs/constants)
16
+  - [Third Party Libraries Support](/docs/third-party)
16 17
 - Migration from v1
17 18
   - [Top Level](/docs/top-level-api-migration)
18 19
   - [Options](/docs/options-migration)

+ 11
- 0
docs/docs/third-party.md View File

@@ -0,0 +1,11 @@
1
+# Third Party Libraries Support
2
+
3
+## Redux
4
+
5
+### registerComponentWithRedux(screenID, generator, store, provider)
6
+Utility helper function like registerComponent,
7
+wraps the provided component with a react-redux Provider with the passed redux store
8
+
9
+```js
10
+Navigation.registerComponentWithRedux(`navigation.playground.WelcomeScreen`, () => WelcomeScreen, store, provider);
11
+```