From 21eb9ca74aa4679a653c377cde93d03d56a5620b Mon Sep 17 00:00:00 2001 From: Jelte Liebrand Date: Wed, 25 Oct 2017 17:23:25 +0100 Subject: [PATCH] Make sure the correct bundle is loaded in prod In prod (or rather when there is no package manger), the fallbackResource is used. And by default that is main.jsbundle. So ensure the thread name is passed along --- ios/ThreadManager.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ios/ThreadManager.m b/ios/ThreadManager.m index e1e57b4..3aa1bba 100644 --- a/ios/ThreadManager.m +++ b/ios/ThreadManager.m @@ -20,7 +20,7 @@ RCT_REMAP_METHOD(startThread, int threadId = abs(arc4random()); - NSURL *threadURL = [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:name fallbackResource:nil]; + NSURL *threadURL = [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:name fallbackResource:name]; NSLog(@"starting Thread %@", [threadURL absoluteString]); -- 2.26.2