-
-
Notifications
You must be signed in to change notification settings - Fork 284
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
Transparent background #575
Comments
Hey there, @lutestringamend! Fancy seeing you here again. How's it going? Yes, you can make the carousel container in the react-native-reanimated-carousel transparent by modifying the Here's how you can modify the style prop: <ScrollViewGesture
key={mode}
size={size}
translation={handlerOffset}
style={[
styles.container,
{
width: width || "100%",
height: height || "100%",
backgroundColor: 'transparent', // Add this line
},
style,
vertical
? styles.itemsVertical
: styles.itemsHorizontal,
]}
testID={testID}
onScrollStart={scrollViewGestureOnScrollStart}
onScrollEnd={scrollViewGestureOnScrollEnd}
onTouchBegin={scrollViewGestureOnTouchBegin}
onTouchEnd={scrollViewGestureOnTouchEnd}
> By adding Please note that the If you're still experiencing issues, could you please provide more information about your setup? Specifically, the versions of react, react-native, react-native-reanimated, react-native-reanimated-carousel, and react-native-gesture-handler you're using, as well as the device and OS you're testing on. This will help in diagnosing the issue. Sources
|
I've tried this solution but the issue persists. Anything else I should modify?
|
Is there anyway to make the carousel container transparent? It always forces a white background container like this. Thank you!
Describe the bug
A clear and concise description of what the bug is. If you intend to submit a PR for this issue, tell us in the description. Thanks!
To Reproduce
Steps to reproduce the behavior:
Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
Versions (please complete the following information):
Smartphone (please complete the following information):
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: