Giter VIP home page Giter VIP logo

Comments (7)

johhansantana avatar johhansantana commented on July 23, 2024 78

I was able to achieve scroll inside the drawer by adding the <ScrollView> as direct children followed by a <TouchableOpacity> with the content inside it

like this:

<ScrollView>
  <TouchableOpacity activeOpacity={1}>
    ...
  </TouchableOpacity>
</ScrollView>

for some reason, it doesn't work with <View> but does so with <TouchableOpacity>

from react-native-raw-bottom-sheet.

Ksiner avatar Ksiner commented on July 23, 2024 4

Seems like drag event is not even triggered on ScrollView, like it's content is not responding on touches or drag or anything else. For some reason this behaves correctly if ScrollView children is wrapped in TouchableOpacity. Then when we drag that wrapped children ScrollView is respond and scrolls in any direction. Maybe that happens because TouchableOpacity is taking event first and that somehow tells ScrollView that its content is touched so it have to respond. Hope that helps somehow.

from react-native-raw-bottom-sheet.

nysamnang avatar nysamnang commented on July 23, 2024 2

Hello @Foskas, currently RBSheet doesn't support this feature yet. If we use ScrollView inside RBSheet we cannot drag the ScrollView's content down to close bottom sheet thus I created a draggable area on the top instead. I've tried implementing many times but no luck to achieve this.
I'll really appreciate if someone could help me to achieve this feature!!!

from react-native-raw-bottom-sheet.

ManuEpi avatar ManuEpi commented on July 23, 2024

Very nice @johhansantana it's working thanks

from react-native-raw-bottom-sheet.

musthafa-pa avatar musthafa-pa commented on July 23, 2024

Yeah, @johhansantana It worked when I wrapped it inside a touchable opacity. Thanks, man.

from react-native-raw-bottom-sheet.

umerdogar avatar umerdogar commented on July 23, 2024

thanks @johhansantana

from react-native-raw-bottom-sheet.

thuhuong1995 avatar thuhuong1995 commented on July 23, 2024

Thanks @johhansantana , it's working

from react-native-raw-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.