react-native-unity-view
react-native-unity-view copied to clipboard
iOS - RNUnityView was not found in the UIManager.
I was able to export the project and run in my device using the example project from RN. Followed the tutorial to integrate the UnityView into the xcode workspace and all seemed fine.
Then i copied the "Example Code" from the bottom of the "README" to the App.js file and it gave me this error.
I have the exact same problem for Android. Any tips from anyone on this? Help is highly appreciated!
I have this problem too!
Any solution? I have the same issue on Android.
If you're running this in a simulator it won't work. You need to run it on a physical device.
iOS real device, still doesn't work. react native 0.64.1, Unity 2021.1.7f1
Have you added this to the top of your main.m
#import "UnityUtils.h"
and changed your int main to look like:
int main(int argc, char * argv[]) { @autoreleasepool { InitArgs(argc, argv); return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class])); } }
Any idea for resolve this?