I'm developing a flip card component in React Native for iOS devices, and this is how I approached it:
<Animated.View ref="container" style={{position:'relative',transform:[{rotateY:'0deg'}]}}>
<View ref="frontFace"><Text>Front face</Text></View>
<View ref="backFace" style={{transform:[{rotateY:'-180deg'}]}}><Text>Back face</Text></View>
</Animated.View>
Sorry about the over-simplified code above - this code works fine and smoothly too. The problem is that the back face is blurry in the simulator, and ugly pixelated on a device.
Is there a way to fix this? Or any better suggestion on how to implement a flip card component?
Thank you!!!
Replace
transform: [{ rotateY: '-180deg'}]
style with:
transform : [{scaleX: -1}]
resolved it.
In my web page, also has blurry text problem,
transform: scaleX(-1);
fix the problem.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With