Problem with RCC Manager in Responsive Mode

I am trying to implement a reaction-natural tab bar in a native response project, although I keep getting the error:

'undefined is not an object (evaluation by RCCManager.setRootController).


I first set the reaction-native-navigation, then reacted-to-the-controllers, and then edited-the native link (exactly the same as the tutorial says).

Here is my AppDelegate.m code:

#import "AppDelegate.h" #import "RCCManager.h" #import <React/RCTBundleURLProvider.h> #import <React/RCTRootView.h> @implementation AppDelegate - (BOOL)application:(UIApplication *)applicationdidFinishLaunchingWithOptions:(NSDictionary *)launchOptions { NSURL *jsCodeLocation; jsCodeLocation = [[RCTBundleURLProvider sharedSettings]jsBundleURLForBundleRoot:@"index.ios" fallbackResource:nil]; self.window = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds]; self.window.backgroundColor = [UIColor whiteColor]; [[RCCManager sharedInstance] initBridgeWithBundleURL:jsCodeLocation]; return YES; } @end 
+6
source share

Source: https://habr.com/ru/post/1013928/


All Articles