We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Enable background color customization on the default backdrop
Most cases you don't need to make anything custom other than the background color. Copying and pasting the internal solutions doesn't seem elegant.
here
react-native-bottom-sheet/src/components/bottomSheetBackdrop/BottomSheetBackdrop.tsx
Line 90 in 4451d34
you need to swap the order in the array, thus allowing the given styles to include the backgroundColor.
const containerStyle = useMemo( () => [ styles.container, style, { opacity: animatedOpacity, }, ], [style, animatedOpacity] );
The text was updated successfully, but these errors were encountered:
Thanks @gorhom
Sorry, something went wrong.
this should be resolved with v2.0.5 & v3.2.1 🎉
Hey @gorhom, it's not changed in V3 /~https://github.com/gorhom/react-native-bottom-sheet/blob/v3/src/components/bottomSheetBackdrop/BottomSheetBackdrop.tsx#L86
It's as @vicolsson said. Didn't know we had an issue for this, I had opened a discussion (#431) thinking I was doing something wrong.
Opened #448.
Successfully merging a pull request may close this issue.
Feature Request
Enable background color customization on the default backdrop
Why it is needed
Most cases you don't need to make anything custom other than the background color. Copying and pasting the internal solutions doesn't seem elegant.
Possible implementation
here
react-native-bottom-sheet/src/components/bottomSheetBackdrop/BottomSheetBackdrop.tsx
Line 90 in 4451d34
you need to swap the order in the array, thus allowing the given styles to include the backgroundColor.
Code sample
The text was updated successfully, but these errors were encountered: