How can I place Unity WebGL in my React Native app?

后端 未结 3 825
面向向阳花
面向向阳花 2021-02-18 22:39

I have written a simple React Native app using WebGL. I used https://github.com/JilvanPinheiro/reactive-native-unity-webgl



        
3条回答
  •  栀梦
    栀梦 (楼主)
    2021-02-18 23:25

    you must have to import React and document from react-native try this it will solve your problem and also Make sure you download the release matching with your Unity version.

    import React, {Component} from 'react';
    import {View,document} from 'react-native';
    

提交回复
热议问题