💫 Update: Example - ContextMenuViewExample19

This commit is contained in:
Dominic Go 2022-06-14 21:04:23 +08:00
parent 83408c5139
commit c74507def2

View File

@ -25,23 +25,17 @@ export function ContextMenuViewExample19(props: ContextMenuExampleProps) {
actionTitle: 'Action #3',
}],
}}
auxiliaryPreviewConfig={{
height: 50,
alignmentHorizontal: 'previewLeading',
}}
renderAuxillaryPreview={() => (
<View style={{
flex: 1,
backgroundColor: 'red',
borderRadius: 10,
padding: 10,
alignItems: 'center',
justifyContent: 'center',
backgroundColor: 'white',
}}>
<View style={{
flex: 1,
backgroundColor: 'blue',
}}>
<Text>
Hello
</Text>
</View>
<Text>
Hello World
</Text>
</View>
)}
onPressMenuItem={({nativeEvent}) => {