JilvanPinheiro / reactive-native-unity-webgl

This repository is to help you implement the the webgl output of the unity and others game engines in your react native project
MIT License
14 stars 0 forks source link

ReferenceError: Can't find variable: document #1

Open xiong222 opened 6 years ago

xiong222 commented 6 years ago

I have wrote simple react native app using webgl.. render() { return ( <Unity width="500px" height="350px" onProgress={ this.onProgress } src="http://192.168.1.101/Build/Ultimatum.json" loader="http://192.168.1.101/Build/UnityLoader.js" /> ); }

But I have got below error

ReferenceError: Can't find variable: document. This error is located at: in Unity (at App.js:9) in RCTView (at View.js:60) in View (at App.js:8) in App (at registerRootComponent.js:35) in RootErrorBoundary (at registerRootComponent.js:34) in ExpoRootComponent (at renderApplication.js:33) in RCTView (at View.js:60) in View (at AppContainer.js:102) in RCTView (at View.js:60) in View (at AppContainer.js:122) in AppContainer (at renderApplication.js:32)

GezimVeliu commented 6 years ago

I have the same problem?

jayther commented 6 years ago

Same issue here :(

Meepolisk commented 5 years ago

Guys, any hope for this issue? :(

amodisc commented 3 years ago

me too.... Any solutions?

thongxuan commented 3 years ago

This is a FAKE repo which forks from react web version. You can't use this in react-native. Look at the source.