lightbasenl / react-native-panorama-view

A simple component for displaying panoramic images in your React Native app.
MIT License
128 stars 48 forks source link

Support both spherical and cylindrical modes #11

Open mhamilton723 opened 5 years ago

mhamilton723 commented 5 years ago

I have gotten this to work, but cant figure out how to view in full spherical vs cylyndrical or how to get the buttons you show in your demo GIF. Thanks for the help!

mimmobordini commented 5 years ago

you can use the example in the pack for the full screen, the module is already in full screen. to put buttons ON the panorama, just add a style to the button and set the position to "absolute"

rodymolenaar commented 4 years ago

Thanks @mimmobordini that's indeed how you should go about adding controls to the scene.

The demo gif is from the parent library used on iOS. Because we do not have a way to toggle the type of view (spherical / cylindrical) with the library we use on Android we're not able to provide it as a cross platform API in this component. You're welcome to contribute, I would love to point you in the right direction :)

cristianoccazinsp commented 4 years ago

The iOS side already decides between cylindrical and spherical automatically based on the image's dimensions. I don't think you really need to manually change this in any way. Furthermore, cylindrical mode look quite ugly if used with a spherical image.