Skip to content

Conversation

@gorhom
Copy link
Owner

@gorhom gorhom commented Jan 29, 2021

close #242

Motivation

replacing TouchableWithoutFeedback with TapGestureHandler solves the issue

@hanno-ferrannegre
Copy link

hanno-ferrannegre commented Feb 1, 2021

@gorhom I can confirm this works as expected 👍.

Edit: It breaks any interaction when the sheet is open on Android. Everything was working on Android so maybe you just need to apply the changes for iOS?

@gorhom
Copy link
Owner Author

gorhom commented Feb 1, 2021

i will investigate it on Android later today, thanks for spotting this issue 😅

@gorhom
Copy link
Owner Author

gorhom commented Feb 1, 2021

hi @hanno-ferrannegre , i did test it on android, and seems fine 🧐

i used your repo https://github.com/ferrannp/bottom-sheet-playground

Screen.Recording.2021-02-01.at.18.46.30.mp4

@ferrannp
Copy link

ferrannp commented Feb 2, 2021

So weird @gorhom, look what it does in my Pixel 4 (real device):

android

A part from the Open button problem (that is probably elevation thing), I cannot then interact with the sheet (close it by gesture) and tapping the backdrop does nothing either.

On the other hand, installing the 3.2.1 works well on Android 😅 .

By the way you don't seem to have latest version of the repo (with react-navigation bottom tabs).

@gorhom
Copy link
Owner Author

gorhom commented Feb 2, 2021

@ferrannp i did test it in a simulator and pixel-c device with latest react-navigation and bottoms-tabs and it works fine , could you clear your metro cache and try again ?

@ferrannp
Copy link

ferrannp commented Feb 3, 2021

Mmm @gorhom:

yarn add ssh://[email protected]:gorhom/react-native-bottom-sheet#fix/backdrop-touchable-component
rm -rf android/app/build
yarn start --reset-cache
yarn android

Still getting the same. So strange... You sure you don't have another change locally/not pushed? Or I am doing something wrong 😅 .

@gorhom
Copy link
Owner Author

gorhom commented Feb 3, 2021

@ferrannp hmm , okay , will test it shortly

@gorhom
Copy link
Owner Author

gorhom commented Feb 3, 2021

hmm downgrading react-native-safe-area-context to 0.7.3 fix the issue 🧐,

i'll investigate it more

@gorhom
Copy link
Owner Author

gorhom commented Feb 3, 2021

hey @ferrannp , could you try the latest commit ... last one i promise 😅

@ferrannp
Copy link

ferrannp commented Feb 4, 2021

@gorhom no problem, I can try as many times as necessary 😄 .

Unfortunately, I still get it broken on Android (like in the gif I posted) 😕 .

@gorhom
Copy link
Owner Author

gorhom commented Feb 4, 2021

ah yea, i notice in your repo that you did not integrate react-native-gesture-handler on android , please complete its setup and try again :)

@ferrannp
Copy link

ferrannp commented Feb 4, 2021

JAAA, oh boy totally forgot about that. Too many projects 😅 . It is definitely working. So let's release it! Thank you!!!

@gorhom gorhom merged commit ea6affe into v3 Feb 4, 2021
@gorhom gorhom deleted the fix/backdrop-touchable-component branch February 4, 2021 12:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

v3 Written in Reanimated v2

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants