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

TouchableWithoutFeedback#onPressIn

onPressIn function

TouchableWithoutFeedback#onPressOut

onPressOut function

TouchableWithoutFeedback#onPress

onPress function Called when the touch is released, but not if cancelled (e.g. by a scroll that steals the responder lock).

TouchableWithoutFeedback#onLongPress

onLongPress function

TouchableWithoutFeedback#onLayout

onLayout function Invoked on mount and layout changes with {nativeEvent: {layout: {x, y, width, height}}}

TouchableWithoutFeedback#disabled

disabled bool If true, disable all interactions for this component.

TouchableWithoutFeedback#delayLongPress

delayLongPress number Delay in ms, from onPressIn, before onLongPress is called.

TouchableWithoutFeedback#delayPressOut

delayPressOut number Delay in ms, from the release of the touch, before onPressOut is called.

TouchableWithoutFeedback#hitSlop

hitSlop {top: number, left: number, bottom: number, right: number} This defines how far your touch can start away from the button. This is added to pressRetentionOffset when moving off of the button. NOTE The touch area never extends past the parent view bounds and the Z-index of sibling views always takes precedence if a touch hits two overlapping views.