react native debug js remotely white screen on ios -
description
i debug on simulator ok, , run on ios device fine,when debug on device show white screen,no error log
additional information
react native version: 0.35.0 platform: [ios 10.1] operating system: [ macos]
this means can't connect packager service. make sure port 8081 open. if it's still failing, check out appdelegate.m in ios project. line gets js package url:
jscodelocation = [[rctbundleurlprovider sharedsettings] jsbundleurlforbundleroot:@"index.ios" fallbackresource:nil];
you can change custom url this:
jscodelocation = [nsurl urlwithstring:@"http://192.168.1.22:8081/index.ios.bundle?platform=ios&dev=true&minify=false"];
Comments
Post a Comment