Module TouchableOpacity-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 => ?style:BsReactNative.Style.t => ?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 => ?focusedOpacity:float => ?testID:string => ?tvParallaxProperties:Js.t({. }) => 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, dimming it.
Opacity is controlled by wrapping the children in an Animated.View, which is added to the view hierarchy. Be aware that this can affect layout. You can read more on
TouchableOpacity
component usage in official docs: https://facebook.github.io/react-native/docs/touchableopacityProps
TouchableWithoutFeedback
propsactiveOpacity
~activeOpacity: float=?
focusedOpacity
~focusedOpacity: float=?
tvParallaxProperties
~tvParallaxProperties: Js.t({.})=?
Methods
setOpacityTo
setOpacityTo: (ReasonReact.reactRef, float, int) => unit