react-native-unity-view | Integrate unity3d within a React Native app | iOS library

 by   asmadsen C# Version: Current License: MIT

kandi X-RAY | react-native-unity-view Summary

kandi X-RAY | react-native-unity-view Summary

react-native-unity-view is a C# library typically used in Mobile, iOS, React Native, Unity applications. react-native-unity-view has no bugs, it has no vulnerabilities, it has a Permissive License and it has low support. You can download it from GitHub.

Integrate unity3d within a React Native app. Add a react native component to show unity. Works on both iOS and Android.
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              react-native-unity-view has a low active ecosystem.
              It has 190 star(s) with 128 fork(s). There are 11 watchers for this library.
              OutlinedDot
              It had no major release in the last 6 months.
              There are 38 open issues and 15 have been closed. On average issues are closed in 28 days. There are 34 open pull requests and 0 closed requests.
              It has a neutral sentiment in the developer community.
              The latest version of react-native-unity-view is current.

            kandi-Quality Quality

              react-native-unity-view has no bugs reported.

            kandi-Security Security

              react-native-unity-view has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.

            kandi-License License

              react-native-unity-view is licensed under the MIT License. This license is Permissive.
              Permissive licenses have the least restrictions, and you can use them in most projects.

            kandi-Reuse Reuse

              react-native-unity-view releases are not available. You will need to build from source code and install.
              Installation instructions, examples and code snippets are available.

            Top functions reviewed by kandi - BETA

            kandi's functional review helps you automatically verify the functionalities of the libraries and avoid rework.
            Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of react-native-unity-view
            Get all kandi verified functions for this library.

            react-native-unity-view Key Features

            No Key Features are available at this moment for react-native-unity-view.

            react-native-unity-view Examples and Code Snippets

            No Code Snippets are available at this moment for react-native-unity-view.

            Community Discussions

            QUESTION

            React Native: Invoke a View on Button click
            Asked 2020-Oct-11 at 18:07

            I'm a React Native noob.

            I just integrated my Unity3D app with the React Native app using nreact-native-unity-view (https://github.com/nhancv/nreact-native-unity-view)

            ...

            ANSWER

            Answered 2020-Oct-11 at 18:07

            The easiest way is to use the stack navigator and have a separate page for the unity screen. https://reactnavigation.org/docs/stack-navigator/

            the code to navigate would be navigation.navigate('screenname'); This code wont work until you sort the imports related to unity and related items.

            Source https://stackoverflow.com/questions/64307308

            QUESTION

            How to solve "libmain.so not found" while using Unity as a library in Android application with latest AndroidX Versions out of ReactNative
            Asked 2020-Feb-27 at 05:06

            We have a ReactNative application that has integrated Unity based on react-native-unity-view successfully as a library for quite a long time. However, after most recent updates on ReactNative regarding AndroidX and latest SDK-changes, we're running into the issue "libmain.so not found". This exception happens on the very first attempt to display a Unity-View.

            There is a similar issue on SO, please don't mark as duplicate as our approach might be different and particulary since we give many many more details here.

            There is a running and still working example on GitHub (based on ReactNative 0.57): https://github.com/f111fei/react-native-unity-demo. As long as this project is based on ReactNative 0.57 and its appropriate gradle-settings, everything works fine. But as soon as we upgrade to the latest ReactNative version (and even 0.60 for example), which gives us an android-folder that is very different against to the older one), the issue happens with a crash of the application. (We also tried to set up everything from scratch to exclude the possibility that this issue was due to upgrades. With RN 0.57 everything still works fine, with RN 0.60 and above not)

            The exception is as follows:

            ...

            ANSWER

            Answered 2019-Nov-21 at 16:33

            I can answer by myself now. The issue was caused by Unity export that was not ARM64-compatible unless several settings were applied manually. Here is how:

            Bevor building for Android, we need to adjust some settings in "Player Settings" in order to make ARM64 available:

            1. Switching "Scripting Backend" from Mono to ILCPP, which enables us to:
            2. Select "ARM64" under Target Architectures

            If you run into an Error like "NDK not found" while building, ensure that Unity has downloaded and installed its own copy of NDK:

            Having all this in mind will enable us to link against these libraries without failing to find "libmain.so".

            Source https://stackoverflow.com/questions/58877735

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install react-native-unity-view

            To allow for the project to recognize the UnityExport folder you will have to add two lines to android/settings.gradle. So it looks like this.
            Add the following to the android/build.gradle
            Add these two lines to android/settings.gradle
            Open your ios/{PRODUCT_NAME}.xcworkspace and add the exported project(ios/UnityExport/Unity-Iphone.xcodeproj) to the workspace root
            Select the Unity-iPhone/Data folder and change the Target Membership to UnityFramework
            Add UnityFramework.framework as a library to your Project
            Modify main.m

            Support

            Add the contents of the Assets folder, to your Unity project.
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            CLONE
          • HTTPS

            https://github.com/asmadsen/react-native-unity-view.git

          • CLI

            gh repo clone asmadsen/react-native-unity-view

          • sshUrl

            git@github.com:asmadsen/react-native-unity-view.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link

            Explore Related Topics

            Consider Popular iOS Libraries

            swift

            by apple

            ionic-framework

            by ionic-team

            awesome-ios

            by vsouza

            fastlane

            by fastlane

            glide

            by bumptech

            Try Top Libraries by asmadsen

            vuex-subscriptions

            by asmadsenTypeScript

            pg6301_100008

            by asmadsenJavaScript

            LottasFleaMarket

            by asmadsenC#

            asmadsen.github.io

            by asmadsenHTML

            syn

            by asmadsenTypeScript