phuochau / react-native-360-image-viewer

Inspired by https://github.com/scaleflex/js-cloudimage-360-view. This is the 360 degrees simulation from multiple images for React Native
MIT License
55 stars 11 forks source link

Image uri is not working #2

Open singheshadev opened 4 years ago

singheshadev commented 4 years ago

I tried to display image with uri But no image displays require working fine

const PATH = 'https://github.com/phuochau/react-native-360-image-viewer/blob/master/example/images/'; const images = _.reverse([ {uri: PATH + 'iris-1.jpg'}, {uri: PATH + 'iris-2.jpg'}, {uri: PATH + 'iris-3.jpg'}, {uri: PATH + 'iris-4.jpg'}, {uri: PATH + 'iris-5.jpg'}, {uri: PATH + 'iris-6.jpg'}, {uri: PATH + 'iris-7.jpg'}, {uri: PATH + 'iris-8.jpg'}, {uri: PATH + 'iris-9.jpg'}, {uri: PATH + 'iris-10.jpg'}, ]);

eth-jashan commented 4 years ago

Can We upload Direct Google 360 photos ?

singheshadev commented 3 years ago

Issue resolved We need to use single url and not merging by plus sign

barcamoed commented 3 years ago

Issue resolved We need to use single url and not merging by plus sign

Can you please show us how you did that? How can I pass local files path e.g files like file:///data/user/0/host.exp.exponent/cache/ExperienceData/UNVERIFIED-192.168.18.74-autojini/ReactNative-snapshot-image3746999592594661361.jpg

hassancodess commented 1 year ago

Issue resolved We need to use single url and not merging by plus sign

Can you please show us how you did that? How can I pass local files path e.g files like file:///data/user/0/host.exp.exponent/cache/ExperienceData/UNVERIFIED-192.168.18.74-autojini/ReactNative-snapshot-image3746999592594661361.jpg

customize the Image360Viewer component and change the source prop like this

 <Image source={{ uri: this.getImage() }} style={[styles.image, { width, height }]} />
ReactTest90 commented 1 year ago

please share proper code how to use http url with Image360Viewer component