react-native-flip-card icon indicating copy to clipboard operation
react-native-flip-card copied to clipboard

Back side is blurred on IOS

Open mkozhukharenko opened this issue 7 years ago • 11 comments

I copied and run an example from this project have found next bug: the back side of the card is blured.

giphy

Does anybody know the problem? I'm trying to figure out it...

Platform: IOS react-native v 47.1 react-native-flip-card v 3.5.1

mkozhukharenko avatar Sep 09 '17 21:09 mkozhukharenko

only text is affected (see http://www.giphy.com/gifs/3ov9jXM7UXfV8pWNUI) (image is still sharp)

mkozhukharenko avatar Sep 09 '17 22:09 mkozhukharenko

I can 100% reproduce the problem using the iOS simulator.

maxperga-zz avatar Sep 10 '17 04:09 maxperga-zz

if the perspective property is removed from the style of the Back card - the problem is gone

mkozhukharenko avatar Sep 10 '17 11:09 mkozhukharenko

on Android everything works fine

mkozhukharenko avatar Sep 11 '17 15:09 mkozhukharenko

this PR https://github.com/moschan/react-native-flip-card/pull/44 caused an issue

mkozhukharenko avatar Sep 15 '17 16:09 mkozhukharenko

thanks for the tip @mkozhukharenko , any idea why that was causing the issue?

JKonTiki avatar Sep 19 '17 23:09 JKonTiki

3.5.0v don't have such problem. It was introduced but latests commit. See my message

mkozhukharenko avatar Sep 20 '17 10:09 mkozhukharenko

@mkozhukharenko that line you mention is needed for this library to work on certain Android devices, its weird that it blurs text in iOS but maybe the solution could be to add a conditional Platform.OS === 'android' before pushing the perspective prop. Already test it and works.

What do you think? I could make a PR with that.

Gringox avatar Oct 09 '17 01:10 Gringox

@Gringox I've created MR, can you check it?

mkozhukharenko avatar Oct 09 '17 05:10 mkozhukharenko

Looks good to me @mkozhukharenko.

Gringox avatar Oct 09 '17 13:10 Gringox

hi! thanks, all and @mkozhukharenko. I bumped new version which contains your MR. Plese check that 👍

moschan avatar Oct 15 '17 05:10 moschan