Module TouchableHighlight-BsReactNative
let make: ?accessible:bool => ?accessibilityLabel:string => ?accessibilityComponentType:BsReactNative.Types.accessibilityComponentType => ?accessibilityTraits:list(BsReactNative.Types.accessibilityTrait) => ?accessibilityRole:BsReactNative.Types.accessibilityRole => ?accessibilityStates:list(BsReactNative.Types.accessibilityState) => ?accessibilityHint:string => ?accessibilityIgnoresInvertColors:bool => ?delayLongPress:int => ?delayPressIn:int => ?delayPressOut:int => ?disabled:bool => ?hitSlop:BsReactNative.Types.insets => ?onLayout:(BsReactNative.RNEvent.NativeLayoutEvent.t => unit) => ?onLongPress:(BsReactNative.RNEvent.NativePressEvent.t => unit) => ?onPress:(BsReactNative.RNEvent.NativePressEvent.t => unit) => ?onPressIn:(BsReactNative.RNEvent.NativePressEvent.t => unit) => ?onPressOut:(BsReactNative.RNEvent.NativePressEvent.t => unit) => ?pressRetentionOffset:BsReactNative.Types.insets => ?activeOpacity:float => ?onHideUnderlay:(unit => unit) => ?onShowUnderlay:(unit => unit) => ?style:BsReactNative.Style.t => ?underlayColor:string => ?hasTVPreferredFocus:bool => ?tvParallaxProperties:Js.t({. }) => ?testID:string => array(ReasonReact.reactElement) => ReasonReact.component(ReasonReact.stateless, ReasonReact.noRetainedProps, unit);
A wrapper for making views respond properly to touches. On press down, the opacity of the wrapped view is decreased, which allows the underlay color to show through, darkening or tinting the view. You can read more on
TouchableHighlight
component usage in official docs: https://facebook.github.io/react-native/docs/touchablehighlightProps
TouchableWithoutFeedback
propsactiveOpacity
~activeOpacity: float=?
onHideUnderlay
~onHideUnderlay: unit => unit=?
onShowUnderlay
~onShowUnderlay: unit => unit=?
style
~style: Style.t=?
underlayColor
~underlayColor: string=?
hasTVPreferredFocus
~hasTVPreferredFocus: bool=?
tvParallaxProperties
~tvParallaxProperties: Js.t({.})=?
testID
~testID: string=?