react-native-reanimated-bottom-sheet icon indicating copy to clipboard operation
react-native-reanimated-bottom-sheet copied to clipboard

Imposible to add a shadow to the sheet, r'u serious?!

Open Omelyan-JoinToIT opened this issue 4 years ago • 3 comments

content's shadow hiding on scrolling, and header's shadow overlapping content...

Omelyan-JoinToIT avatar Sep 09 '20 09:09 Omelyan-JoinToIT

It is possible! Just nest your BottomSheet content inside another <View />. Then add a marginTop and a shadow to your nested content.

trentcowden avatar Mar 30 '21 22:03 trentcowden

thanks @trentcowden works for me. The only issue is that I can't use the borderRadius prop anymore, so I had to add a border radius style to my render component.

orofbrown avatar Apr 13 '21 16:04 orofbrown

@trentcowden 's solution works. However you need to add a negative marginBottom, if not the BottomSheet will scroll up and down. And when scrolled up, it will remove the shadow.
So for example if you added marginTop: 2, you also need to add marginBottom: -2. This prevents the BottomSheet from scrolling.

MattYoon avatar Jul 26 '21 07:07 MattYoon