From 8dc41fa7652318bc692cedba05de6e7de837d0dc Mon Sep 17 00:00:00 2001 From: Joe Noon Date: Fri, 8 Jan 2016 16:59:45 -0800 Subject: [PATCH] alternative way to set property This is the only other way I can think of. re #139 and #140 --- CodePush.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CodePush.m b/CodePush.m index bba73ed..c4946c7 100644 --- a/CodePush.m +++ b/CodePush.m @@ -230,7 +230,7 @@ static NSString *const PackageIsPendingKey = @"isPending"; // file (since Chrome wouldn't support it). Otherwise, update // the current bundle URL to point at the latest update if ([CodePush isUsingTestConfiguration] || ![_bridge.bundleURL.scheme hasPrefix:@"http"]) { - _bridge.bundleURL = [CodePush bundleURL]; + [_bridge setValue:[CodePush bundleURL] forKey:@"bundleURL"]; } [_bridge reload]; @@ -492,4 +492,4 @@ RCT_EXPORT_METHOD(downloadAndReplaceCurrentBundle:(NSString *)remoteBundleUrl) } } -@end \ No newline at end of file +@end