Skip to content

xcreatorsx/react-native-unity

Repository files navigation

Installation

 yarn add https://github.com/xcreatorsx/react-native-unity.git`
 

Android integration instructions

  1. Export Unity app to [project_root]/unity/builds/android

  2. Add the following lines to android/settings.gradle:

    include ':unityLibrary'
    project(':unityLibrary').projectDir=new File('..\\unity\\builds\\android\\unityLibrary')
  3. Add into android/build.gradle

    allprojects {
      repositories {
        // this
        flatDir {
            dirs "${project(':unityLibrary').projectDir}/libs"
        }
    // ...
  4. Add into android/gradle.properties

    unityStreamingAssets=.unity3d
  5. Add strings to android/app/src/main/res/values/strings.xml

    <string name="game_view_content_description">Game view</string>

About

No description, website, or topics provided.

Resources

License

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published