Skip to content

Latest commit

 

History

History
20 lines (17 loc) · 495 Bytes

File metadata and controls

20 lines (17 loc) · 495 Bytes
id view
title View
officialDoc https://reactnative.dev/docs/view

The most fundamental building block. Accepts layout / view style props via Style.s, accessibility props, gesture responder handlers, and W3C pointer events (onPointerDown, …).

open ReactNative
open Style

<View
  style={s({flex: 1., padding: 16.->dp, backgroundColor: "white"})}
  onPointerDown={_ => Console.log("pointer down")}>
  <Text> {"Hello"->React.string} </Text>
</View>