Home
last modified time | relevance | path

Searched refs:onPress (Results 1 – 25 of 723) sorted by relevance

12345678910>>...29

/expo/home/components/
H A DConstantItem.tsx8 onPress?: () => void;
11 export function ConstantItem({ title, value, onPress }: Props) {
13 <TouchableOpacity disabled={!onPress} onPress={onPress}>
/expo/apps/native-component-list/src/components/FunctionDemo/
H A DActionButton.tsx10 onPress,
14 onPress: (action: ActionFunction) => void;
16 const handlePress = useCallback(() => onPress(action), [onPress, action]);
20 <TouchableOpacity onPress={handlePress}>
/expo/docs/public/static/examples/v46.0.0/tutorial/03-button-options/
H A DButton.js4 export default function Button({ label, theme, onPress }) {
12 <Pressable style={[styles.button, { backgroundColor: '#fff' }]} onPress={onPress}>
22 <Pressable style={styles.button} onPress={onPress}>
H A DIconButton.js4 export default function IconButton({ icon, label, onPress }) {
6 <Pressable style={styles.iconButton} onPress={onPress}>
H A DApp.js51 <IconButton icon="refresh" label="Reset" onPress={onReset} />
52 <CircleButton onPress={onAddSticker} />
53 <IconButton icon="save-alt" label="Save" onPress={onSaveImageAsync} />
58 <Button theme="primary" label="Choose a photo" onPress={pickImageAsync} />
61 onPress={() => setShowAppOptions(true)}
/expo/docs/public/static/examples/unversioned/tutorial/03-button-options/
H A DButton.js4 export default function Button({ label, theme, onPress }) {
12 <Pressable style={[styles.button, { backgroundColor: '#fff' }]} onPress={onPress}>
22 <Pressable style={styles.button} onPress={onPress}>
H A DIconButton.js4 export default function IconButton({ icon, label, onPress }) {
6 <Pressable style={styles.iconButton} onPress={onPress}>
H A DApp.js51 <IconButton icon="refresh" label="Reset" onPress={onReset} />
52 <CircleButton onPress={onAddSticker} />
53 <IconButton icon="save-alt" label="Save" onPress={onSaveImageAsync} />
58 <Button theme="primary" label="Choose a photo" onPress={pickImageAsync} />
61 onPress={() => setShowAppOptions(true)}
/expo/docs/public/static/examples/v49.0.0/tutorial/03-button-options/
H A DButton.js4 export default function Button({ label, theme, onPress }) {
12 <Pressable style={[styles.button, { backgroundColor: '#fff' }]} onPress={onPress}>
22 <Pressable style={styles.button} onPress={onPress}>
H A DIconButton.js4 export default function IconButton({ icon, label, onPress }) {
6 <Pressable style={styles.iconButton} onPress={onPress}>
/expo/docs/public/static/examples/v47.0.0/tutorial/03-button-options/
H A DButton.js4 export default function Button({ label, theme, onPress }) {
12 <Pressable style={[styles.button, { backgroundColor: '#fff' }]} onPress={onPress}>
22 <Pressable style={styles.button} onPress={onPress}>
H A DIconButton.js4 export default function IconButton({ icon, label, onPress }) {
6 <Pressable style={styles.iconButton} onPress={onPress}>
H A DApp.js51 <IconButton icon="refresh" label="Reset" onPress={onReset} />
52 <CircleButton onPress={onAddSticker} />
53 <IconButton icon="save-alt" label="Save" onPress={onSaveImageAsync} />
58 <Button theme="primary" label="Choose a photo" onPress={pickImageAsync} />
61 onPress={() => setShowAppOptions(true)}
/expo/docs/public/static/examples/v48.0.0/tutorial/03-button-options/
H A DButton.js4 export default function Button({ label, theme, onPress }) {
12 <Pressable style={[styles.button, { backgroundColor: '#fff' }]} onPress={onPress}>
22 <Pressable style={styles.button} onPress={onPress}>
H A DIconButton.js4 export default function IconButton({ icon, label, onPress }) {
6 <Pressable style={styles.iconButton} onPress={onPress}>
H A DApp.js51 <IconButton icon="refresh" label="Reset" onPress={onReset} />
52 <CircleButton onPress={onAddSticker} />
53 <IconButton icon="save-alt" label="Save" onPress={onSaveImageAsync} />
58 <Button theme="primary" label="Choose a photo" onPress={pickImageAsync} />
61 onPress={() => setShowAppOptions(true)}
/expo/apps/native-component-list/src/screens/Contacts/
H A DContactsListItem.tsx12 onPress: (contactId: string) => void;
14 const onPress = () => {
15 props.onPress && props.onPress(props.contactId);
20 <TouchableHighlight underlayColor={Colors.listItemTouchableHighlight} onPress={onPress}>
H A DContactDetailList.tsx18 onPress?: () => void;
21 function ContactDetailListItem({ label, value, onPress }: DetailListItem) {
25 disabled={!onPress}
26 onPress={onPress}>
32 {onPress && <Ionicons size={24} color={Colors.tabIconDefault} name="ios-arrow-forward" />}
/expo/apps/native-component-list/src/screens/
H A DSecureStoreScreen.tsx61 { text: 'OK', onPress: () => {} },
64 Alert.alert('Error!', e.message, [{ text: 'OK', onPress: () => {} }]);
76 { text: 'OK', onPress: () => {} },
79 Alert.alert('Error!', e.message, [{ text: 'OK', onPress: () => {} }]);
91 { text: 'OK', onPress: () => {} },
94 Alert.alert('Error!', e.message, [{ text: 'OK', onPress: () => {} }]);
106 { text: 'OK', onPress: () => {} },
109 Alert.alert('Error!', e.message, [{ text: 'OK', onPress: () => {} }]);
116 Alert.alert('Success!', 'Value deleted', [{ text: 'OK', onPress: () => {} }]);
118 Alert.alert('Error!', e.message, [{ text: 'OK', onPress: () => {} }]);
[all …]
H A DAlertScreen.tsx16 onPress: () => console.log('Ask me later pressed'),
20 onPress: () => console.log('Cancel Pressed'),
23 { text: 'OK', onPress: () => console.log('OK Pressed') },
30 <Button disabled={Platform.OS !== 'ios'} onPress={showPrompt} title="Prompt for a value" />
31 <Button onPress={showAlert} title="Give me some options" />
/expo/ios/versioned-react-native/ABI47_0_0/ReactNative/Libraries/LogBox/UI/__tests__/__snapshots__/
H A DLogBoxInspectorFooter-test.js.snap64 onPress={[Function]}
68 onPress={[Function]}
91 onPress={[Function]}
95 onPress={[Function]}
118 onPress={[Function]}
122 onPress={[Function]}
/expo/ios/versioned-react-native/ABI49_0_0/ReactNative/Libraries/LogBox/UI/__tests__/__snapshots__/
H A DLogBoxInspectorFooter-test.js.snap64 onPress={[Function]}
68 onPress={[Function]}
91 onPress={[Function]}
95 onPress={[Function]}
118 onPress={[Function]}
122 onPress={[Function]}
/expo/ios/versioned-react-native/ABI48_0_0/ReactNative/Libraries/LogBox/UI/__tests__/__snapshots__/
H A DLogBoxInspectorFooter-test.js.snap64 onPress={[Function]}
68 onPress={[Function]}
91 onPress={[Function]}
95 onPress={[Function]}
118 onPress={[Function]}
122 onPress={[Function]}
/expo/packages/expo-dev-launcher/bundle/components/
H A DListButton.tsx8 onPress: () => void;
15 onPress,
23 onPress={onPress}
/expo/home/menu/DevMenuItem/
H A Dindex.tsx9 onPress: (key: string) => any;
17 export function DevMenuItem({ isEnabled = true, buttonKey, label, onPress, icon }: Props) {
19 if (onPress) {
20 onPress(buttonKey);
27 <TouchableOpacity onPress={_onPress} disabled={!isEnabled}>

12345678910>>...29