Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow touches to pass through transparent KeyboardAccessoryView (pointerEvents) #66

Open
lafiosca opened this issue Apr 2, 2021 · 0 comments

Comments

@lafiosca
Copy link

lafiosca commented Apr 2, 2021

Hello! Thanks for the great library!

In our app I'm using a KeyboardAccessoryView with a transparent background. It has a text input along the bottom and some floating action buttons in a column on the right. There is a large, unused, invisible portion of the view (to the left of the FABs) which I would like to be able to click through to the underlying content. My suggestion is to add pointerEvents="box-none" to the three Views here:

<View style={{ height: (isKeyboardVisible || alwaysVisible ? visibleHeight : 0) }}>
<View style={[

and here:
<View onLayout={this.handleChildrenLayout}>

or to expose this functionality as an optional prop. For now I am using patch-package to accomplish this in our app.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant