Преглед изворни кода

Added third-party libraries support doc

yogevbd пре 6 година
родитељ
комит
d6c068e0eb
2 измењених фајлова са 12 додато и 0 уклоњено
  1. 1
    0
      docs/_sidebar.md
  2. 11
    0
      docs/docs/third-party.md

+ 1
- 0
docs/_sidebar.md Прегледај датотеку

@@ -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 Прегледај датотеку

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