You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 15, 2020. It is now read-only.
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
The text was updated successfully, but these errors were encountered: