Skip to content

Commit 3707256

Browse files
author
Protik Biswas
committed
fixing lint issue
1 parent 3fb450a commit 3707256

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

NewArch/src/Navigation.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -326,9 +326,9 @@ const createDrawerNavigator = () => {
326326
</DrawerNavigator>
327327
);
328328
},
329-
Screen: ({component, name, ...props}: DrawerScreenProps) => {
329+
Screen: ({component, name, key}: DrawerScreenProps) => {
330330
return (
331-
<DrawerScreen {...props} name={name} component={component} />
331+
<DrawerScreen key={key} name={name} component={component} />
332332
);
333333
},
334334
};

NewArch/src/components/ScreenWrapper.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ export function ScreenWrapper({
8383
// accessibilityRole="button"
8484
accessibilityLabel="Navigation bar"
8585
accessibilityState={{ expanded: isDrawerOpen }}
86+
accessibilityLiveRegion='assertive'
8687
// accessibilityHint={isDrawerOpen ? 'Tap to collapse navigation menu' : 'Tap to expand navigation menu'}
8788
// tooltip={isDrawerOpen ? 'Tap to collapse navigation menu' : 'Tap to expand navigation menu'}
8889
// requires react-native-gesture-handler to be imported in order to pass testing.
@@ -96,6 +97,7 @@ export function ScreenWrapper({
9697
<TouchableHighlight
9798
accessibilityRole="button"
9899
accessibilityLabel="Navigation menu"
100+
tooltip={'Expand navigation menu'}
99101
// requires react-native-gesture-handler to be imported in order to pass testing.
100102
// blocked by #125
101103
//accessibilityState={{expanded: useIsDrawerOpen()}}

0 commit comments

Comments
 (0)