Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[v4] Bottom Sheet Modal shadow cut off #1756

Closed
iannngit opened this issue Feb 26, 2024 · 0 comments
Closed

[v4] Bottom Sheet Modal shadow cut off #1756

iannngit opened this issue Feb 26, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@iannngit
Copy link

Bug

The shadow of Bottom Sheet Modal gets cut off by its unknown parent. Please check the screenshot.

image

Environment info

Library Version
@gorhom/bottom-sheet 4.6.1
react-native 0.73.4
react-native-reanimated 3.6.2
react-native-gesture-handler 2.14.0
expo 50.0.7

Steps To Reproduce

I followed and checked the example code and put style to BottomSheetModal.
I saw shadow was vague so I changed the values to make shadow more solid and saw the shadow was cut off.

Reproducible sample code

      <BottomSheet
        ref={modalRef}
        handleIndicatorStyle={{
          backgroundColor: '#79747E'
        }}
        style={{
          backgroundColor: 'black',
          borderTopStartRadius: 5,
          borderTopEndRadius: 5,
          shadowOffset: {
            width: 0,
            height: 0
          },
          shadowOpacity: 1,
          shadowRadius: 20,
    
          elevation: 24
        }}

Then I have

 <GestureHandlerRootView style={{ flex: 1 }}>
      <SafeAreaProvider>
        <BottomSheetModalProvider>
          <NavigationContainer
@iannngit iannngit added the bug Something isn't working label Feb 26, 2024
@iannngit iannngit changed the title [v4] | [v2] Issue title [v4] Bottom Sheet Modal shadow cut off Feb 26, 2024
@iannngit iannngit closed this as not planned Won't fix, can't repro, duplicate, stale Feb 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant