-
Notifications
You must be signed in to change notification settings - Fork 0
Closed
Description
In Config.js:
try {
fs.writeFileSync(local_path + 'react-native/node_modules/metro/src/node-haste/Package.js',
fs.readFileSync(path.resolve(__dirname, 'metro-polyfill/Package.js'))
);
} catch (e) {}
fs.writeFileSync(local_path + 'metro/src/node-haste/Package.js',
fs.readFileSync(path.resolve(__dirname, 'metro-polyfill/Package.js'))
);and
try {
fs.writeFileSync(local_path + 'react-native/node_modules/metro/src/defaults.js',
fs.readFileSync(path.resolve(__dirname, 'metro-polyfill/defaults.js'))
);
} catch (e) {
fs.writeFileSync(local_path + 'metro/src/defaults.js',
fs.readFileSync(path.resolve(__dirname, 'metro-polyfill/defaults.js'))
);
}handle the catch blocks differently. They should both be like the first.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels