ActionBar
Quick actions bar, each action support Button component props
(code example)
info
This component extends View props.
tip
This component support margin, padding modifiers.
Usageβ
Live Editor
<View marginT-40> <ActionBar actions={[ {label: 'Delete', onPress: () => console.log('delete')}, {label: 'Replace Photo', onPress: () => console.log('replace photo')}, {label: 'Edit', onPress: () => console.log('edit')} ]} /> </View>
Result
Loading...
APIβ
actionsβ
The actions for the action bar
ButtonProps[]
backgroundColorβ
Background color
string
centeredβ
Should action be equally centered
boolean
heightβ
Height
number
keepRelativeβ
Keep the action bar position relative instead of it absolute position
boolean
styleβ
Component's style
ViewStyle
useSafeAreaβ
In iOS, use safe area, in case component attached to the bottom
boolean