How can I place Unity WebGL in my React Native app?
问题 I have written a simple React Native app using WebGL. I used https://github.com/JilvanPinheiro/reactive-native-unity-webgl import Unity from 'react-native-unity-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'm getting the error below: ReferenceError: Can't find variable: document. This error is located at: in Unity (at App.js:9)