/* eslint-disable react-native/no-inline-styles */ import * as React from 'react'; import { Alert, TouchableOpacity, View, Text, StyleSheet } from 'react-native'; import { Colors } from 'react-native-ios-utilities'; import { ContextMenuView } from 'react-native-ios-context-menu'; import type { ExampleItemProps } from './SharedExampleTypes'; import { ContextMenuCard } from '../components/ContextMenuCard'; export function ContextMenuAuxPreviewExample01(props: ExampleItemProps) { return ( ( Button )} onPressMenuItem={({nativeEvent}) => { Alert.alert( 'onPressMenuItem Event', `actionKey: ${nativeEvent.actionKey} - actionTitle: ${nativeEvent.actionTitle}` ); }} > ); }; const styles = StyleSheet.create({ auxRootContainer: { backgroundColor: 'white', borderRadius: 10, padding: 10, }, buttonContainer: { backgroundColor: Colors.PURPLE.A700, paddingHorizontal: 10, paddingVertical: 5, maxWidth: 200, borderRadius: 10, }, buttonLabel: { fontWeight: 'bold', color: 'white', }, });