Skip to content

Commit

Permalink
fix: fix drawer screen content not being interactable on Android
Browse files Browse the repository at this point in the history
  • Loading branch information
satya164 committed Jan 25, 2021
1 parent b1b2118 commit 87b5147
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
6 changes: 5 additions & 1 deletion packages/bottom-tabs/src/views/ResourceSavingScene.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,11 @@ export default function ResourceSavingScene({
}

return (
<View style={[styles.container, style]} pointerEvents="box-none">
<View
style={[styles.container, style]}
// box-none doesn't seem to work properly on Android
pointerEvents={isVisible ? 'auto' : 'none'}
>
<View
collapsable={false}
removeClippedSubviews={
Expand Down
6 changes: 5 additions & 1 deletion packages/drawer/src/views/ResourceSavingScene.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,11 @@ export default function ResourceSavingScene({
}

return (
<View style={[styles.container, style]} pointerEvents="box-none">
<View
style={[styles.container, style]}
// box-none doesn't seem to work properly on Android
pointerEvents={isVisible ? 'auto' : 'none'}
>
<View
collapsable={false}
removeClippedSubviews={
Expand Down

0 comments on commit 87b5147

Please sign in to comment.