Switch#value

value bool The value of the switch. If true the switch will be turned on. Default value is false.

Upgrading

Upgrading to new versions of React Native will give you access to more APIs, views, developer tools and other goodies. Because React Native projects are essentially made up of an Android project, an iOS project and a JavaScript project, all combined under an npm package, upgrading can be rather tricky. But we try to make it easy for you. Here's what you need to do to upgrade from an older version of React Native: 1. Upgrade the react-native dependency Note the latest version of the react-nati

TextInput#maxLength

maxLength number Limits the maximum number of characters that can be entered. Use this instead of implementing the logic in JS to avoid flicker.

PixelRatio.startDetecting()

static startDetecting() // No-op for iOS, but used on the web. Should not be documented.

Flexbox#alignSelf

alignSelf enum('auto', 'flex-start', 'flex-end', 'center', 'stretch')

Flexbox#borderLeftWidth

borderLeftWidth number

RefreshControl#size

androidsize enum(RefreshLayoutConsts.SIZE.DEFAULT, RefreshLayoutConsts.SIZE.LARGE) Size of the refresh indicator, see RefreshControl.SIZE.

DrawerLayoutAndroid#drawerPosition

drawerPosition enum(DrawerConsts.DrawerPosition.Left, DrawerConsts.DrawerPosition.Right) Specifies the side of the screen from which the drawer will slide in.

LayoutAnimation.configureNext()

static configureNext(config, onAnimationDidEnd?) Schedules an animation to happen on the next layout. @param config Specifies animation properties: duration in milliseconds create, config for animating in new views (see Anim type) update, config for animating views that have been updated (see Anim type) @param onAnimationDidEnd Called when the animation finished. Only supported on iOS. @param onError Called on error. Only supported on iOS.

Flexbox#paddingTop

paddingTop number