Estoy tratando de implementar la barra de pestañas de navegación nativa de reacción en un proyecto nativo de reacción, aunque sigo recibiendo el error:
'indefinido no es un objeto (Evaluando RCCManager.setRootController)'.
Primero instalé react-native-navigation, luego react-native-controllers, luego hice react-native link (tal como dice el tutorial).
Aquí está mi código AppDelegate.m:
#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