Description
Environment.setBackground gives an error
and this is what is instructed to be used in the docs located in this page
https://facebook.github.io/react-360/docs/photos-and-videos.html
Environment.setBackground( asset('path/to/image.jpg'), {format: '2D'}, /* one of the formats mentioned above */ );
Expected behavior
as i understand you should update the docs to instruct the following
Environment.setBackgroundImage( './static_assets/360_world.jpg', {format: '2D'} );
Actual behavior
gives an error
Reproduction
just following the docs.
Solution
as described, use the following:
Environment.setBackgroundImage( './static_assets/360_world.jpg', {format: '2D'} );
What needs to be done to address this issue? Ideally, provide a pull request with a fix.
please update your doc file in the following address, so others will not have the same issue, thanks
https://facebook.github.io/react-360/docs/photos-and-videos.html
Additional Information