Skip to content

Commit

Permalink
fix: allow touch events to go through in PortalHost (#1422)
Browse files Browse the repository at this point in the history
  • Loading branch information
forkandfix authored and satya164 committed Oct 28, 2019
1 parent 37183ec commit eab656c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/components/Portal/PortalHost.tsx
Expand Up @@ -125,7 +125,11 @@ export default class PortalHost extends React.Component<Props> {
}}
>
{/* Need collapsable=false here to clip the elevations, otherwise they appear above Portal components */}
<View style={styles.container} collapsable={false}>
<View
style={styles.container}
collapsable={false}
pointerEvents="box-none"
>
{this.props.children}
</View>
<PortalManager ref={this.setManager} />
Expand Down
1 change: 1 addition & 0 deletions src/components/__tests__/__snapshots__/Portal.test.js.snap
Expand Up @@ -4,6 +4,7 @@ exports[`renders portal with siblings 1`] = `
Array [
<View
collapsable={false}
pointerEvents="box-none"
style={
Object {
"flex": 1,
Expand Down

0 comments on commit eab656c

Please sign in to comment.