Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
2
Question by antonhighrise · Oct 17, 2015 at 12:40 AM · uimobileuikit

Unity3D and React Native

We are working on creating a Unity game with a large UI component. We are considering using React Native for the UI. Do you know if this is possible?

Comment
Add comment · Show 3
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image hingham · Oct 14, 2016 at 03:36 PM 0
Share

Did you manage to do this?

avatar image J-Ellis6809 · Jan 24, 2017 at 06:47 PM 1
Share

Did you have any success with this?

avatar image Streamfall · Mar 02, 2017 at 08:50 PM 0
Share

Thinking of doing the same, any thoughts?

2 Replies

· Add your reply
  • Sort: 
avatar image
1

Answer by shaunakdas2020 · Aug 23, 2017 at 05:00 PM

Finally after a lot of trials managed to do this. These are the steps.

  • 1) Using this link, export android project for Gradle. Select Gradle in the Build Settings window and check the Export Project checkbox. Click Export and select the destination folder.

  • 2) Import the generated folder in Android studio. Select ok whenever prompted. In this process, you will encounter following issues

  • 2a) Gradle Sync Failed due to org.gradle.api.internal.tasks issues. Resolve using this link

  • 3) Create React Native App using this link

  • 4) Start Integrating Android exported folder inside created react native app using this link. Don't upgrade Gradle as Android Studio will ask you again and again. You will encounter following issues. Don't go through "Test Integration" until you are finished with #5 here.

  • 4a) While configuring Maven, use this url for Maven url "$rootDir/../node_modules/react-native/android" .

  • 4b) While configuring maven if you encounter a problem related to javax.inject:javax.inject". Use this link.

  • 4c) You may also encounter this error "Conflict with dependency 'com.google.code.findbugs:jsr305'". You can solve it using this link.

  • 4d) During Code integration section of this link, focus on the following section: If you are using a starter kit for React Native, replace the "HelloWorld" string with the one in your index.android.js file (it’s the first argument to the AppRegistry.registerComponent() method). Here you have to replace with the project name.

  • 5) Before going through "Test your Integration" section, you have to add code to call MyReactActivity from UnityActivity. This link will help.

  • 6) Go through "Test your Integration" section of link provided in #4. You may encounter following problems.

  • 6a) unable to load script from assets index.android.bundle. Use this link.

  • 6b) could not connect to development server on android. Use this link.

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image
0

Answer by marijnz · Jan 13, 2018 at 09:18 PM

I created an example project of how to do this for Android: https://github.com/marijnz/unity-react

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

13 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Touch input problem 1 Answer

Best free way to control a first person character on a mobile device 2 Answers

Enabling player to pick their own music 0 Answers

Cardboard Stereoview divider line bug 1 Answer

Cross Platform Input touchpad acceleration 1 Answer


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges