Giter Club home page Giter Club logo

Comments (10)

Eyesonly88 avatar Eyesonly88 commented on June 29, 2024 3

For future readers, a workaround is:

<SafeAreaView forceInset={{ bottom: 'never' }}/>

Overriding the zIndex doesn't seem to work even if the value is greater than 100 which is what seems to be set for this component.

from react-native-reanimated-bottom-sheet.

dotpegaso avatar dotpegaso commented on June 29, 2024 3

any updates on this?

from react-native-reanimated-bottom-sheet.

lancesnider avatar lancesnider commented on June 29, 2024 2

The forceInset={{ bottom: 'never' }} solution kinda defeats the purpose of SafeAreaView.

Here's my pretty hacky, hopefully temporary solution. I've added an empty SafeAreaView with a white background, which covers the part of the BottomSheet that should be hidden.

<Fragment>
  <SafeAreaView>
     <BottomSheet ... />
  </SafeAreaView>
  <SafeAreaView style={{backgroundColor: 'white'}}> 
</Fragment>

Edit: The SafeAreaView doesn't need to be wrapped in a View.

from react-native-reanimated-bottom-sheet.

osdnk avatar osdnk commented on June 29, 2024 1

Thanks, I have no opinion how to deal with now, but I'm going to figure it out soon.

from react-native-reanimated-bottom-sheet.

sibelius avatar sibelius commented on June 29, 2024 1

what is the proper solution for this?

from react-native-reanimated-bottom-sheet.

turingpavan avatar turingpavan commented on June 29, 2024 1

Doesn't work. Tested in iPhoneX. snapPoints percentage also gets messed up with SafeAreaView.

from react-native-reanimated-bottom-sheet.

osdnk avatar osdnk commented on June 29, 2024

I think that @Eyesonly88 is good. Need to dig into it a bit

from react-native-reanimated-bottom-sheet.

ansarikhurshid786 avatar ansarikhurshid786 commented on June 29, 2024

if you are using nativebase ui library then put bottomsheet inside component.

from react-native-reanimated-bottom-sheet.

berkayakks avatar berkayakks commented on June 29, 2024

you can use snapPoints={[100, -100]} in BottomSheet.

from react-native-reanimated-bottom-sheet.

aslamanver avatar aslamanver commented on June 29, 2024

There is no fix yet, the workaround is;

const insets = useSafeAreaInsets();

<BottomSheet
    containerStyle={{
      marginTop: insets.top,
      marginBottom: insets.bottom,
    }}
    ref={bottomSheetRef}
    snapPoints={snapPoints}
>

https://stackoverflow.com/a/77387359/5380942

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.