Skip to content
This repository was archived by the owner on Feb 25, 2020. It is now read-only.

Commit 419f4a5

Browse files
flyingcirclesatya164
authored andcommitted
fix: hide content while drawer is open from talkback (#132)
1 parent 275f713 commit 419f4a5

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/navigators/__tests__/createDrawerNavigator.test.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ it('renders successfully', () => {
3737
}
3838
>
3939
<View
40+
importantForAccessibility="yes"
4041
style={
4142
Object {
4243
"flex": 1,

src/views/Drawer.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -544,6 +544,7 @@ export default class DrawerView extends React.PureComponent<Props> {
544544
},
545545
sceneContainerStyle as any,
546546
]}
547+
importantForAccessibility={open ? 'no-hide-descendants' : 'yes'}
547548
>
548549
{renderSceneContent({ progress: this.progress })}
549550
<TapGestureHandler

0 commit comments

Comments
 (0)