alwx / react-native-photo-view

Pinch-to-zoom view for React Native (both iOS and Android)
MIT License
816 stars 434 forks source link

Background under the images #158

Open Shperung opened 6 years ago

Shperung commented 6 years ago

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?

bourliam commented 6 years ago

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

radetsky commented 5 years ago

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.

BenjErgizerBunny commented 5 years ago

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!