Module View-BsReactNative
module type ViewComponent = { ... };
module type Impl = { ... };
module CreateComponent: (Impl: Impl) => ViewComponent;
include ViewComponent;
let make: ?accessibilityLabel:string => ?accessible:bool => ?hitSlop:BsReactNative.Types.insets => ?onAccessibilityTap:(unit => unit) => ?onLayout:(BsReactNative.RNEvent.NativeLayoutEvent.t => unit) => ?onMagicTap:(unit => unit) => ?responderHandlers:BsReactNative.Types.touchResponderHandlers => ?pointerEvents:BsReactNative.Types.pointerEvents => ?removeClippedSubviews:bool => ?style:BsReactNative.Style.t => ?testID:string => ?accessibilityComponentType:BsReactNative.Types.accessibilityComponentType => ?accessibilityLiveRegion:BsReactNative.Types.accessibilityLiveRegion => ?collapsable:bool => ?importantForAccessibility:BsReactNative.Types.importantForAccessibility => ?needsOffscreenAlphaCompositing:bool => ?renderToHardwareTextureAndroid:bool => ?accessibilityTraits:list(BsReactNative.Types.accessibilityTrait) => ?accessibilityRole:BsReactNative.Types.accessibilityRole => ?accessibilityStates:list(BsReactNative.Types.accessibilityState) => ?accessibilityHint:string => ?accessibilityIgnoresInvertColors:bool => ?accessibilityViewIsModal:bool => ?shouldRasterizeIOS:bool => array(ReasonReact.reactElement) => ReasonReact.component(ReasonReact.stateless, ReasonReact.noRetainedProps, unit);
The most fundamental component for building a UI, You can read more on
View
component usage in official docs: https://facebook.github.io/react-native/docs/viewProps
accessibilityLabel
~accessibilityLabel: ReasonReact.reactElement=?,
accessible
~accessible: bool=?,
hitSlop
~hitSlop: Types.insets=?,
onAccessibilityTap
~onAccessibilityTap: unit => unit=?,
onLayout
~onLayout: RNEvent.NativeLayoutEvent.t => unit=?,
onMagicTap
~onMagicTap: unit => unit=?,
responderHandlers
~responderHandlers: Types.touchResponderHandlers=?,
pointerEvents
~pointerEvents: [ | `auto | `none | `boxNone | `boxOnly]=?,
removeClippedSubviews
~removeClippedSubviews: bool=?,
style
~style: Style.t=?,
testID
~testID: string=?,
accessibilityComponentType
~accessibilityComponentType: [ | `none | `button | `radiobutton_checked | `radiobutton_unchecked ] =?
accessibilityLiveRegion
~accessibilityLiveRegion: [ | `none | `polite | `assertive]=?,
collapsable
~collapsable: bool=?
importantForAccessibility
~importantForAccessibility: [ | `auto | `yes | `no | `noHideDescendants]=?
needsOffscreenAlphaCompositing
~needsOffscreenAlphaCompositing: bool=?
renderToHardwareTextureAndroid
~renderToHardwareTextureAndroid: bool=?
accessibilityTraits
~accessibilityTraits: list( [ | `none | `button | `link | `header | `search | `image | `selected | `plays | `key | `text | `summary | `disabled | `frequentUpdates | `startsMedia | `adjustable | `allowsDirectInteraction | `pageTurn ], ) =?,
accessibilityViewIsModal
~accessibilityViewIsModal: bool=?,
shouldRasterizeIOS
~shouldRasterizeIOS: bool=?,