Parcourir la source

Added third-party libraries support doc

yogevbd il y a 6 ans
Parent
révision
d6c068e0eb
2 fichiers modifiés avec 12 ajouts et 0 suppressions
  1. 1
    0
      docs/_sidebar.md
  2. 11
    0
      docs/docs/third-party.md

+ 1
- 0
docs/_sidebar.md Voir le fichier

@@ -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 Voir le fichier

@@ -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
+```