Giter VIP home page Giter VIP logo

Comments (4)

nysamnang avatar nysamnang commented on July 4, 2024

@acerbastimur Nothing wrong with this behaviour. There are two layers when you open bottom sheet, one is the bottom sheet area which shows your content and the other one is the blank area on the top of your content that you can touch to close bottom sheet.
In your snippet code, you set customStyles wrapper: { backgroundColor: 'rgba(0,0,0,0.02)' } it means that you set color of the blank area to 'rgba(0,0,0,0.02)'. When you close the bottom sheet this blank area looks like jumping to the top but actually it showed since you open the bottom sheet.
So conclusion, you'll have to set backgroundColor to wrapper: { backgroundColor: 'transparent' } to solve this issue.

PS: I see you set animationType="slide". So you'll have to set backgroundColor to wrapper: { backgroundColor: 'transparent' } or animationType="none" to solve this issue.

from react-native-raw-bottom-sheet.

acerbastimur avatar acerbastimur commented on July 4, 2024

Thanks for your reply!

In fact, I want to add shadow to container but when I set something like that :

<RBSheet ref={ref => { CampaignDetailsModalStore.campaignDetailsHalfModalRef = ref; }} duration={50} closeOnDragDown animationType="slide" customStyles={{ wrapper: {backgroundColor: 'transparent'}, container: { borderTopRightRadius: 40, borderTopLeftRadius: 40, paddingTop: 2, height: 'auto', elevation: 3, shadowColor: 'black', shadowOffset: { width: 0, height: 3, }, shadowRadius: 2, shadowOpacity: 0.2, }, draggableIcon: {width: 100, height: 4, backgroundColor: Colors.SECONDARY}, }}>

it doesnt show shadow. So I set background color but there is this problem :)

Can you say why my shadow doesn't effect ?

from react-native-raw-bottom-sheet.

nysamnang avatar nysamnang commented on July 4, 2024

@acerbastimur Keep your code same as before and Try animationType="none" or delete this line of code (default "none").

from react-native-raw-bottom-sheet.

 avatar commented on July 4, 2024

@nysamnang applying animationType="none" removes the animation.
Is there any solution with the animation?

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.