Skip to content

Commit e4b8c7e

Browse files
isaacrowntreeclaude
andcommitted
repro: add interactive footer to demonstrate touch bug
Makes BasicSheet's footer tappable with an Alert so the touch swallowing bug is immediately visible on physical devices. iOS: taps on the footer are silently dropped Android: taps fire twice (double alert) Related: lodev09#589 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 444fe55 commit e4b8c7e

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

example/shared/src/components/sheets/BasicSheet.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { forwardRef, useRef, useState, type Ref, useImperativeHandle } from 'react';
2-
import { StyleSheet } from 'react-native';
2+
import { Alert, StyleSheet } from 'react-native';
33
import { TrueSheet, useTrueSheet, type TrueSheetProps } from '@lodev09/react-native-true-sheet';
44

55
import { BLUE, DARK, DARK_BLUE, FOOTER_HEIGHT, GAP, SPACING, times } from '../../utils';
@@ -105,7 +105,7 @@ export const BasicSheet = forwardRef((props: BasicSheetProps, ref: Ref<TrueSheet
105105
backgroundBlur={detentIndex > 0 ? 'system-material' : undefined}
106106
backgroundColor={detentIndex > 0 ? BLUE : undefined}
107107
header={<Header />}
108-
footer={<Footer />}
108+
footer={<Footer text="TAP FOOTER" onPress={() => Alert.alert('Footer', 'Tap registered!')} />}
109109
{...rest}
110110
>
111111
{times(contentCount, (i) => (
@@ -141,7 +141,7 @@ export const BasicSheet = forwardRef((props: BasicSheetProps, ref: Ref<TrueSheet
141141
backgroundColor={DARK}
142142
dimmed={false}
143143
style={styles.content}
144-
footer={<Footer />}
144+
footer={<Footer text="TAP FOOTER" onPress={() => Alert.alert('Footer', 'Tap registered!')} />}
145145
>
146146
<DemoContent color={DARK_BLUE} />
147147
<DemoContent color={DARK_BLUE} />

0 commit comments

Comments
 (0)