SOLUTION:
Looks like the issue was my connection. Changing HOST to LAN (from Tunnel) seems to have resolved the issue.
Hi:
I’m following a Udemy course which features the Expo XDE for React Native learning.
The tutor’s iOS simulator seems to refresh in quite a timely fashion, whereas locally, mine lags quite a bit. Here’s the log output for reference:
10:39:56 PM Restarting project and clearing packager cache (Hold shift while clicking restart to avoid clearing cache).
10:40:01 PM Starting React Native packager...
10:40:03 PM Scanning 646 folders for symlinks in /Users/[user]/[path]/node_modules (9ms)
10:40:03 PM Loading dependency graph.
10:40:03 PM Running packager on port 19001.
10:40:03 PM
10:40:05 PM Project opened! You can now use the "Send Link" or "Device" buttons to view your project.
10:40:05 PM Dependency graph loaded.
The device log output is as follows:
Running application "main"
with appParams: {
"rootTag": 1,
"initialProps": {
"exp": {
"manifest": {
"packagerOpts": {
"lanType": "ip",
"strict": false,
"minify": false,
"urlRandomness": "gd-tj9",
"hostType": "tunnel",
"urlType": "exp",
"dev": true
},
"slug": "swipe",
"bundleUrl": "http://packager.gd-tj9.nextriot.swipe.exp.direct:80/main.bundle?platform=ios&dev=true&strict=false&minify=false&hot=false&assetPlugin=expo/tools/hashAssetFiles",
"debuggerHost": "packager.gd-tj9.nextriot.swipe.exp.direct:80",
"loading": {
"iconUrl": "http://packager.gd-tj9.nextriot.swipe.exp.direct:80/assets/./assets/icons/loading.png",
"icon": "./assets/icons/loading.png",
"hideExponentText": false
},
"icon": "./assets/icons/app.png",
"primaryColor": "#cccccc",
"isVerified": true,
"name": "swipe",
"version": "1.0.0",
"xde": true,
"iconUrl": "http://packager.gd-tj9.nextriot.swipe.exp.direct:80/assets/./assets/icons/app.png",
"id": "@nextriot/swipe",
"orientation": "portrait",
"sdkVersion": "16.0.0",
"ios": {
"supportsTablet": true
},
"logUrl": "http://gd-tj9.nextriot.swipe.exp.direct:80/logs",
"env": {},
"privacy": "public",
"mainModuleName": "main",
"developer": {
"tool": "xde"
},
"description": "An empty new project"
},
"appOwnership": "expo",
"initialUri": "exp://localhost:19000",
"shell": false
}
}
}.__DEV__ === true, development - level warning are ON, performance optimizations are OFF
Any ideas as to why their machine would be almost instantaneous whereas mine takes ~9s? If so, any ideas on how to resolve the lag?
I’m using a 2.7Ghz MBP w/ Touch Bar (2016).
Thanks in advance.