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
If I add style to my <FlipCard> element and use the clickable FlipCard, styles like width: '100%' won't be passed to the FlipCard element as expected because TouchableOpacity is wrapping the FlipCard element without any style attribute:
My use case is that I want my FlipCard element to span 100% of a surrounding View that has flex:1 set.
I'd be happy to submit a PR if there's a suitable solution. One option that would work from my perspective is to simply add a touchableFlipCardContainer style prop to the FlipCard element. That adds a little complexity so it would be great to hear if there's a better alternative!
The text was updated successfully, but these errors were encountered:
@YPCrumble I'm having a similar issue where my FlipCard won't flex to the width of its parent View. Have you found a workaround without editing the flipcard library directly?
Thanks for building this repo!
If I add style to my
<FlipCard>
element and use the clickable FlipCard, styles likewidth: '100%'
won't be passed to theFlipCard
element as expected becauseTouchableOpacity
is wrapping theFlipCard
element without any style attribute:My use case is that I want my
FlipCard
element to span 100% of a surroundingView
that hasflex:1
set.I'd be happy to submit a PR if there's a suitable solution. One option that would work from my perspective is to simply add a
touchableFlipCardContainer
style prop to theFlipCard
element. That adds a little complexity so it would be great to hear if there's a better alternative!The text was updated successfully, but these errors were encountered: