Skip to content

Commit cb909a5

Browse files
chore: Add Platform-specific accessibility fix for BottomSheet component
1 parent 40aef83 commit cb909a5

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/design-system/bottomSheets/BottomSheet.tsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import {
77
BottomSheetView,
88
} from '@gorhom/bottom-sheet'
99
import { useCallback } from 'react'
10-
import { Dimensions } from 'react-native'
10+
import { Dimensions, Platform } from 'react-native'
1111

1212
import { BottomSheetHeader } from './BottomSheetHeader'
1313
import { BottomSheetScrollView } from './BottomSheetScrollables'
@@ -45,6 +45,11 @@ export const BottomSheet = ({
4545
snapPoints={[screenHeight - top - 24]}
4646
backdropComponent={renderBackdrop}
4747
enableDynamicSizing
48+
accessible={Platform.select({
49+
// setting it to false on Android seems to cause issues with TalkBack instead
50+
// https://github.com/mobile-dev-inc/maestro/issues/1493
51+
ios: false,
52+
})}
4853
backgroundStyle={{
4954
// eslint-disable-next-line react-native/no-inline-styles
5055
backgroundColor: colors.bg.primary,

0 commit comments

Comments
 (0)