View
An enhanced View component
(code example)
info
This component extends View props.
tip
This component support margins, paddings, alignments, background, borderRadius modifiers.
Usageβ
Live Editor
<View row gap-s5 centerV> <View style={{width: 200, height: 200}} bg-purple40 centerH> <View style={{width: 60, height: 60}} bg-green20/> </View> <View style={{width: 150, height: 150}} bg-orange30 bottom right> <View style={{width: 50, height: 50}} bg-yellow40 br100 margin-s2/> </View> </View>
Result
Loading...
APIβ
animatedβ
Use Animate.View as a container
boolean
backgroundColorβ
Set background color
string
inaccessibleβ
Turn off accessibility for this view and its nested children
boolean
reanimatedβ
Use Animate.View (from react-native-reanimated) as a container
boolean
recorderTagβ
Recorder Tag
'mask' | 'unmask'
renderDelayβ
Experimental: Pass time in ms to delay render
number
styleβ
Custom style
ViewStyle
useSafeAreaβ
If true, will render as SafeAreaView
boolean