Skip to content

Commit d0f6a1a

Browse files
starkwangFacebook Github Bot 8
authored andcommitted
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 #6615 Differential Revision: D3102065 fb-gh-sync-id: da96e3c422e053d0a8203bbd160ea10ed590878a fbshipit-source-id: da96e3c422e053d0a8203bbd160ea10ed590878a
1 parent 21c433d commit d0f6a1a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Libraries/CustomComponents/Navigator/Navigator.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -236,8 +236,9 @@ var Navigator = React.createClass({
236236
onDidFocus: PropTypes.func,
237237

238238
/**
239-
* Optionally provide a navigation bar that persists across scene
240-
* transitions
239+
* Optionally provide a component as navigation bar that persists across scene
240+
* transitions. The component will receive two props: `navigator` and `navState`.
241+
* It will be rerendered when the routes change.
241242
*/
242243
navigationBar: PropTypes.node,
243244

0 commit comments

Comments
 (0)