mirror of
https://github.com/jellyfin/jellyfin-expo.git
synced 2024-11-27 00:00:26 +00:00
Merge pull request #547 from thornbill/patch-metro-urls
Patch metro config to fix invalid native module urls
This commit is contained in:
commit
5161352e73
@ -9,4 +9,13 @@ const defaultConfig = getDefaultConfig(__dirname);
|
||||
|
||||
defaultConfig.resolver.assetExts.push('staticjs');
|
||||
|
||||
defaultConfig.server.rewriteRequestUrl = (url) => {
|
||||
if (!url.endsWith('.bundle')) {
|
||||
return url;
|
||||
}
|
||||
// https://github.com/facebook/react-native/issues/36794
|
||||
// JavaScriptCore strips query strings, so try to re-add them with a best guess.
|
||||
return url + '?platform=ios&dev=true&minify=false&modulesOnly=false&runModule=true';
|
||||
};
|
||||
|
||||
module.exports = defaultConfig;
|
||||
|
Loading…
Reference in New Issue
Block a user