react-native-photo-view icon indicating copy to clipboard operation
react-native-photo-view copied to clipboard

Background under the images

Open Shperung opened this issue 6 years ago • 3 comments

How to replace the background under the images from black to white or to another. Found in the file RNPhotoView.m. But there is no parameter to set at initialization?

Shperung avatar Apr 25 '18 11:04 Shperung

Yeah I'm interested in this too! Changing the RNPhotoView.m doesn't seems to be a great fix...

bourliam avatar Jun 20 '18 21:06 bourliam

Hello guys,

I'm edited RNPhotoView.m and replaced 'blackColor' constant to 'whiteColor' in the three places and recompile project. It works. I'm not expert in native module bridges for react native. So this solution works for me.

radetsky avatar Aug 07 '18 19:08 radetsky

I want to have a transparent background under my image and for some reason in RNPhotoView.m all three backgroundColor properties have been set to blackColor and I'm not sure what to enter to make it transparent again. I've tried creating a new react-native project, installing and linking PhotoView again and each time it still comes up with a background!

If anyone has any advice that would be great!

BenjErgizerBunny avatar Sep 10 '18 20:09 BenjErgizerBunny