@interface AppDelegate () <TapTalkLiveDelegate>
// Add a UINavigationController variable
@property (strong, nonatomic) UINavigationController *navigationController;
@implementation AppDelegate
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
[[TapTalkLive sharedInstance] application:application didFinishLaunchingWithOptions:launchOptions];
RCTBridge *bridge = [[RCTBridge alloc] initWithDelegate:self launchOptions:launchOptions];
RCTRootView *rootView = [[RCTRootView alloc] initWithBridge:bridge
moduleName:@"PowerTalkReactNative"
rootView.backgroundColor = [[UIColor alloc] initWithRed:1.0f green:1.0f blue:1.0f alpha:1];
_window = [[UIWindow alloc] initWithFrame:CGRectMake(0.0f, 0.0f, CGRectGetWidth([UIScreen mainScreen].bounds), CGRectGetHeight([UIScreen mainScreen].bounds))];
// Initialize navigation controller
UIViewController *rootViewController = [[UIViewController alloc] init];
rootViewController.view = rootView;
_navigationController = [[UINavigationController alloc] initWithRootViewController:rootViewController];
[self.navigationController setNavigationBarHidden:YES animated:YES];
self.window.rootViewController = self.navigationController;
[self.window makeKeyAndVisible];
[[TapTalk sharedInstance] initWithAppKeyID: ... ];
NSSetUncaughtExceptionHandler(&handleExceptions);
// Method to open chat view
- (void)navigateToPowerTalk {
//Initialize TapTalk.io room list view controller here
TAPRoomListViewController *roomListViewController = [[TapUI sharedInstance] roomListViewController];
UINavigationController *roomListNavigationController = [[UINavigationController alloc] initWithRootViewController:roomListViewController];
[self presentViewController:roomListViewController animated:YES completion:^{