-
Notifications
You must be signed in to change notification settings - Fork 84
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
Only one card visible after update to react native 0.76 #135
Comments
I have the same issue. But its not just that. After swiping the first card it appears like the image I attached. only the card behind is swipeable. the first/small card is not swipeable. Should we expect an update or just switch to an other card library? The new architecture seems like breaking things. |
Exact same issue on my side, please help ! stackSize={amount} + showSecondCard={true} isn't working anymore |
The issue appears to be caused by the negative z-index values assigned to the cards beneath the first one. What fixed the problem for me was changing const styles = StyleSheet.create({
...
container: {
alignItems: 'stretch',
position: 'absolute',
top: 0,
left: 0,
right: 0,
bottom: 0
}
...
} to const styles = StyleSheet.create({
...
container: {
alignItems: 'stretch',
position: 'relative', // HERE
top: 0,
left: 0,
right: 0,
bottom: 0
}
...
} in |
Okay i found a solution that worked for me : this i what my Swiper code looks like :
|
For me, getting rid of "flex: 1" worked perfectly. It now stacks and the animation of the cards moving forward works as well. |
As in title only one card visible after update to react native 0.76, to reproduce this bug just create expo blank expo project with sdk 0.52 which use 0.76 react native version and no matter stacksize, no matter stackSeparation, only first card is visible, and after scrolling it, then next one appear. So swiping is working, bust stack is not visible, just card which is first in front.
The text was updated successfully, but these errors were encountered: