소스 검색

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