facebookarchive / react-360

Create amazing 360 and VR content using React
https://facebook.github.io/react-360
Other
8.73k stars 1.22k forks source link

How to set transform style of background image? #472

Open zzc-tongji opened 6 years ago

zzc-tongji commented 6 years ago

In react-vr, background image could be transformed.

<Pano
  source={{
    uri: 'www.example.com/panorama.jpg',
    stereo: '2D'
  }}
  style={{
    transform: [{rotateY: -45}]
  }}
/>

In react-360, however, <Pano> is no longer used for describing background image of panorama. It was replaced by Environment.setBackground() and Environment.setBackgroundImage().

So how to set transform style of background image in react-360 (like in react-vr above) ?

andrewimm commented 6 years ago

This is not currently implemented. We will look into the best API for this, since it needs to exist in 3 different places.