From 9eb75b4dfbe91ae6d86776950191aa022b773eb2 Mon Sep 17 00:00:00 2001 From: Bruno Barbieri Date: Fri, 1 Apr 2016 09:02:37 -0700 Subject: [PATCH] - added available SceneConfigs to Navigator docs Summary:At the beginning of the navigator docs it says " See Navigator.SceneConfigs for default animations and more info on scene config options." but then this is the only information available: screen shot 2016-03-23 at 2 40 49 am And the only way of knowing about the available options is to look at the source code. I think a lot of people will appreciate this... If you think this is too much, maybe adding a link to the source code would help. Closes https://github.com/facebook/react-native/pull/6599 Differential Revision: D3088592 fb-gh-sync-id: f11025b76441e9394ce42ed6c796fa1ace3e8c27 fbshipit-source-id: f11025b76441e9394ce42ed6c796fa1ace3e8c27 --- Libraries/CustomComponents/Navigator/Navigator.js | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/Libraries/CustomComponents/Navigator/Navigator.js b/Libraries/CustomComponents/Navigator/Navigator.js index a12b49e9a..365b69199 100644 --- a/Libraries/CustomComponents/Navigator/Navigator.js +++ b/Libraries/CustomComponents/Navigator/Navigator.js @@ -195,6 +195,20 @@ var Navigator = React.createClass({ * ``` * (route, routeStack) => Navigator.SceneConfigs.FloatFromRight * ``` + * + * Available options are: + * + * - Navigator.SceneConfigs.PushFromRight (default) + * - Navigator.SceneConfigs.FloatFromRight + * - Navigator.SceneConfigs.FloatFromLeft + * - Navigator.SceneConfigs.FloatFromBottom + * - Navigator.SceneConfigs.FloatFromBottomAndroid + * - Navigator.SceneConfigs.FadeAndroid + * - Navigator.SceneConfigs.HorizontalSwipeJump + * - Navigator.SceneConfigs.HorizontalSwipeJumpFromRight + * - Navigator.SceneConfigs.VerticalUpSwipeJump + * - Navigator.SceneConfigs.VerticalDownSwipeJump + * */ configureScene: PropTypes.func,