react-native/Examples/UIExplorer/js/NavigationExperimental
Hedger Wang ca8531105e NavigationExperimental: Rename `renderOverlay` to `renderHeader`
Summary:
NavigationCardStack is a custom component, and its API should be explicit, not
too generic..

In NavigationCardStack, the prop `renderOverlay` is actually used to render
the NavigationHeader, and we uses absolute position to build the layout for
the header and the body.

One of the problem with using absolute postion and fixed height to build the
layout that contains the header is that the header can't have variant height
easily.

Ideally, if the layout for the header used flex-box, we'd ve able to be more
adaptive to deal with the header that has variant height.

That said, let's rename `renderOverlay` to `renderHeader`, then build the
proper layout that explicitly works better with the header.

If we to need to support overlay in navigation, we may consider add
`renderOverlay` later, if it's really necessary.

Reviewed By: ericvicenti

Differential Revision: D3670224

fbshipit-source-id: ff04acfe9dc995cb57117b3fd9b07d5f97b9c6ee
2016-08-04 11:28:31 -07:00
..
NavigationCardStack-NavigationHeader-Tabs-example.js NavigationExperimental: Rename `renderOverlay` to `renderHeader` 2016-08-04 11:28:31 -07:00
NavigationCardStack-example.js Cleanup UIExplorer folder 2016-07-12 05:59:13 -07:00
NavigationExampleRow.js Convert from React.createClass to ES6 classes 2016-07-26 01:13:31 -07:00
NavigationExperimentalExample.js Convert from React.createClass to ES6 classes 2016-07-26 01:13:31 -07:00
NavigationTransitioner-AnimatedView-example.js Cleanup UIExplorer folder 2016-07-12 05:59:13 -07:00
NavigationTransitioner-AnimatedView-pager-example.js clean UIExplorer NavigationExperimental example code 2016-08-04 10:28:31 -07:00