You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
This package is verry good and smooth carousel/swiper. It save my day. But I have a trouble when using style prop. After reseach, I found that style will pass to View container and ScrollViewGesture (maybe in Item container too). So when I try to pass a style (for ex: marginHorizontal), it apply 2 time and lead to wrong behavior. So I suggest split style into style (or containerStyle for View container) and scrollStyle.
To Reproduce
Pass style prop.
Expected behavior
Each style prop impact each part of component.
Screenshots
Versions (please complete the following information):
react: v17.0.2
react-native: v0.67.2
react-native-reanimated: v2.4.1
react-native-reanimated-carousel: v2.3.4
react-native-gesture-handler: v2.2.0
Smartphone (please complete the following information):
Device: simulator iPhone 12
OS: iOS 14.5
If I wrong, hope you guide me the right way to pass style prop.
Thanks for your support.
The text was updated successfully, but these errors were encountered:
Describe the bug
This package is verry good and smooth carousel/swiper. It save my day. But I have a trouble when using style prop. After reseach, I found that style will pass to View container and ScrollViewGesture (maybe in Item container too). So when I try to pass a style (for ex: marginHorizontal), it apply 2 time and lead to wrong behavior. So I suggest split style into style (or containerStyle for View container) and scrollStyle.
To Reproduce
Pass style prop.
Expected behavior
Each style prop impact each part of component.
Screenshots
![image](https://user-images.githubusercontent.com/61128944/164127837-a979d62b-ddfd-42fb-acb9-6c03494f38c1.png)
![image](https://user-images.githubusercontent.com/61128944/164139098-80862cc1-7cdf-4868-84d3-8551cbb49ccd.png)
Versions (please complete the following information):
Smartphone (please complete the following information):
If I wrong, hope you guide me the right way to pass style prop.
Thanks for your support.
The text was updated successfully, but these errors were encountered: