Skip to content

Commit e1a6387

Browse files
authored
fix: allow Overlay to be focusable in iOS with Full Keyboard Access enabled (react-navigation#12600)
**Motivation** Currently, if you are using Full Keyboard Access in iOS, there is no way to close the drawer once it has been opened, as the Pressable within the Overlay is not focusable. **Test plan** in iOS, with Full Keyboard Access enabled at the OS level (System Settings -> Accessibility -> Keyboards and Typing -> Full Keyboard Access -> On) - Open a drawer - Try to navigate using only the keyboard to the Overlay to close it - Press space to close the Overlay
1 parent ac51096 commit e1a6387

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packages/react-native-drawer-layout/src/views/Overlay.native.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ export function Overlay({
4141
style={styles.pressable}
4242
role="button"
4343
aria-label={accessibilityLabel}
44+
accessible
4445
/>
4546
</Animated.View>
4647
);

0 commit comments

Comments
 (0)