From d0f6a1a13e40eebde7fa647b2d6866997dfccc1d Mon Sep 17 00:00:00 2001 From: Weijia Wang <381152119@qq.com> Date: Sat, 26 Mar 2016 07:00:19 -0700 Subject: [PATCH] Imporve docs for the prop "navigationBar" in Navigator Summary:The doc of props "navigationBar" in Navigator is not detailed enough. I make an improvement to it. Closes https://github.com/facebook/react-native/pull/6615 Differential Revision: D3102065 fb-gh-sync-id: da96e3c422e053d0a8203bbd160ea10ed590878a fbshipit-source-id: da96e3c422e053d0a8203bbd160ea10ed590878a --- Libraries/CustomComponents/Navigator/Navigator.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Libraries/CustomComponents/Navigator/Navigator.js b/Libraries/CustomComponents/Navigator/Navigator.js index d37490a60..a12b49e9a 100644 --- a/Libraries/CustomComponents/Navigator/Navigator.js +++ b/Libraries/CustomComponents/Navigator/Navigator.js @@ -236,8 +236,9 @@ var Navigator = React.createClass({ onDidFocus: PropTypes.func, /** - * Optionally provide a navigation bar that persists across scene - * transitions + * Optionally provide a component as navigation bar that persists across scene + * transitions. The component will receive two props: `navigator` and `navState`. + * It will be rerendered when the routes change. */ navigationBar: PropTypes.node,