From 073032d79f23a699d34b591f06c68d2d93cb6f1b Mon Sep 17 00:00:00 2001 From: Website Deployment Script Date: Tue, 18 Oct 2016 18:06:30 +0000 Subject: [PATCH] Updated docs for next --- releases/next/docs/navigator.html | 2 +- releases/next/docs/textinput.html | 38 ++++++++++++++++++++++++++++++- 2 files changed, 38 insertions(+), 2 deletions(-) diff --git a/releases/next/docs/navigator.html b/releases/next/docs/navigator.html index a402ebfe650..e259ce48ba7 100644 --- a/releases/next/docs/navigator.html +++ b/releases/next/docs/navigator.html @@ -105,7 +105,7 @@ available s gestures. Will be invoked with route and routeStack parameters, where route corresponds to the current scene being rendered by the Navigator and routeStack is the set of currently mounted routes -that the navigator could transition to.

The function should return a scene configuration object.

(route, routeStack) => Navigator.SceneConfigs.FloatFromRight

Available scene configuration options are:

initialRoute object #

The initial route for navigation. A route is an object that the navigator +that the navigator could transition to.

The function should return a scene configuration object.

(route, routeStack) => Navigator.SceneConfigs.FloatFromRight

Available scene configuration 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.HorizontalSwipeJumpFromLeft
  • Navigator.SceneConfigs.VerticalUpSwipeJump
  • Navigator.SceneConfigs.VerticalDownSwipeJump

initialRoute object #

The initial route for navigation. A route is an object that the navigator will use to identify each scene it renders.

If both initialRoute and initialRouteStack props are passed to Navigator, then initialRoute must be in a route in initialRouteStack. If initialRouteStack is passed as a prop but diff --git a/releases/next/docs/textinput.html b/releases/next/docs/textinput.html index b6bf2b7dab6..6034950eedb 100644 --- a/releases/next/docs/textinput.html +++ b/releases/next/docs/textinput.html @@ -923,7 +923,43 @@ exports.examples /View> ); } - } + }, + { + title: 'TextInput maxLength', + render: function() { + return ( + <View> + <WithLabel label="maxLength: 5"> + <TextInput + maxLength={5} + style={styles.default} + /> + </WithLabel> + <WithLabel label="maxLength: 5 with placeholder"> + <TextInput + maxLength={5} + placeholder="ZIP code entry" + style={styles.default} + /> + </WithLabel> + <WithLabel label="maxLength: 5 with default value already set"> + <TextInput + maxLength={5} + defaultValue="94025" + style={styles.default} + /> + </WithLabel> + <WithLabel label="maxLength: 5 with very long default value already set"> + <TextInput + maxLength={5} + defaultValue="9402512345" + style={styles.default} + /> + </WithLabel> + </View> + ); + } + }, ];

ANDROID #

Edit on GitHub
'use strict'; var React = require('react');