alwx / react-native-photo-view

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

Headers not being sent when loading image #101

Open rudin opened 7 years ago

rudin commented 7 years ago

When specifying a header in the source object, it's not being set when loading the image.

example: source={{uri: props.uri, headers: {Authorization: Bearer ${this.props.token}}}}

This is possible with 'Image' so it'd be great if react-native-photo-view would support this as well.

crazywako commented 6 years ago

Please fix this.

Under-Warz commented 6 years ago

@alwx please add this feature, it's natively managed with RNImage

adamgeoffrion commented 6 years ago

Is there any update on this?

ThienMD commented 6 years ago

Yes, have one update on github. But not update in npm. Please install this library by command: npm i -s https://github.com/alwx/react-native-photo-view/tarball/master

gnprice commented 6 years ago

In case the specifics are helpful to anyone else: this was fixed by commit c58fd6b30 from #127 . The fixed version can be pulled in with the following line in package.json:


    "react-native-photo-view": "alwx/react-native-photo-view#c58fd6b30",