yarn add https://github.com/xcreatorsx/react-native-unity.git`
-
Export Unity app to
[project_root]/unity/builds/android -
Add the following lines to
android/settings.gradle:include ':unityLibrary' project(':unityLibrary').projectDir=new File('..\\unity\\builds\\android\\unityLibrary')
-
Add into
android/build.gradleallprojects { repositories { // this flatDir { dirs "${project(':unityLibrary').projectDir}/libs" } // ...
-
Add into
android/gradle.propertiesunityStreamingAssets=.unity3d
-
Add strings to
android/app/src/main/res/values/strings.xml<string name="game_view_content_description">Game view</string>