Coder Social home page Coder Social logo

Getting issues with TextInput and other touchables on android - A very random behavior about react-native-reanimated-bottom-sheet HOT 11 OPEN

osdnk avatar osdnk commented on July 28, 2024 4
Getting issues with TextInput and other touchables on android - A very random behavior

from react-native-reanimated-bottom-sheet.

Comments (11)

JakeHadley avatar JakeHadley commented on July 28, 2024 2

For Touchables to work in a BottomSheet on Android, you need to import them from react-native-gesture-handler.

@Eyesonly88 So we can't import a library like react-native-segmented-control-tab then? Everything has to be through react-native-gesture-handler? I'm getting the behavior you thought @roshangm1 was getting, where this library's buttons don't respond to touches at all when put onto the bottom sheet.

from react-native-reanimated-bottom-sheet.

margabit avatar margabit commented on July 28, 2024 2

I'm facing the same issue. Randomly all the visible content of the application will not respond to touch events. It's like there's a transparent overlay covering all the elements.
Looks like the component that causes this behavior is the BottomSheet. I can reproduce randomly every 5 or so view reloads. I haven't understood yet if there's any pattern.

Any suggestion?

from react-native-reanimated-bottom-sheet.

roshangm1 avatar roshangm1 commented on July 28, 2024 1

I am not talking about the Touchables inside Bottomsheet but about the touchables in the same screen where the bottom sheet is (outside bottomsheet). @Eyesonly88

from react-native-reanimated-bottom-sheet.

CMiguelRB avatar CMiguelRB commented on July 28, 2024 1

Same here in Android, gestures stop working in the entire app screen.

from react-native-reanimated-bottom-sheet.

roshangm1 avatar roshangm1 commented on July 28, 2024

@osdnk @satya164 @Eyesonly88

from react-native-reanimated-bottom-sheet.

Eyesonly88 avatar Eyesonly88 commented on July 28, 2024

@roshangm1 For Touchables to work in a BottomSheet on Android, you need to import them from react-native-gesture-handler. Haven't tried a TextInput.

from react-native-reanimated-bottom-sheet.

Eyesonly88 avatar Eyesonly88 commented on July 28, 2024

Oh, I see.
I have those and they work fine for me on both iOS and Android RN 0.59.5.

from react-native-reanimated-bottom-sheet.

phuochau avatar phuochau commented on July 28, 2024

I have the same problem, it seems we can't use it on Android. It's really a problem because the BottomSheet needs to include different UIs inside.

from react-native-reanimated-bottom-sheet.

JakeHadley avatar JakeHadley commented on July 28, 2024

@phuochau What are you using instead?

from react-native-reanimated-bottom-sheet.

RichardLindhout avatar RichardLindhout commented on July 28, 2024

I had the same problem. Solution is to only render bottom sheet when something is clicked.

from react-native-reanimated-bottom-sheet.

zinaida2mc avatar zinaida2mc commented on July 28, 2024

adding enabledContentTapInteraction={false} fixed problem for me

from react-native-reanimated-bottom-sheet.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.