Skip to content
This repository has been archived by the owner on Dec 15, 2020. It is now read-only.

Module not found: Can't resolve 'AmbientLight' in 'E:\reactproject\v5\dva-boot-admin\node_modules\react-360\Libraries' #795

Open
linhuisheng opened this issue Apr 15, 2020 · 2 comments

Comments

@linhuisheng
Copy link

linhuisheng commented Apr 15, 2020

I yarn add react-360 and yarn add react-360-web
Writing a component(Hello360.js):
import React from 'react';
import {
AppRegistry,
StyleSheet,
Text,
View,
VrButton,
Image,
Environment
} from 'react-360';
import './style/index.less';

export default class extends React.Component {
state = {
url: './static_assets/360_world.jpg',
img: './static_assets/360_world1.jpg'
}
handleClick(){
let newUrl = ''
let newImg = ''
if(this.state.url === './static_assets/360_world.jpg'){
newUrl = './static_assets/360_world.jpg'
newImg = './static_assets/360_world1.jpg'
}else{
newUrl = './static_assets/360_world1.jpg'
newImg = './static_assets/360_world.jpg'
}
this.setState({
url:newUrl,
img:newImg
})
Environment.setBackgroundImage(newUrl)
}
render() {
return (


<Image className="img" source={{uri: this.state.url}} />


);
}
};
Direct error:
./node_modules/react-360/Libraries/react-360.js
Module not found: Can't resolve 'AmbientLight' in 'E:\rea
60\Libraries'
image

@fax1ty
Copy link

fax1ty commented May 25, 2020

Any news?

@kgirma
Copy link

kgirma commented Nov 17, 2020

Having the same issues

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants