Skip to content

Instantly share code, notes, and snippets.

@albertoammar
Forked from 6pm/metro.config.js
Last active February 19, 2020 17:03
Show Gist options
  • Save albertoammar/8cf2b3739675b886c3c9da63f8ddbb28 to your computer and use it in GitHub Desktop.
Save albertoammar/8cf2b3739675b886c3c9da63f8ddbb28 to your computer and use it in GitHub Desktop.
Configure metro.config.js to use symbolic link in react native
const path = require('path');
// react-native >= 0.57
const extraNodeModules = {
'qb-core': path.resolve(__dirname + '/../qb-core/'),
};
const watchFolders = [
path.resolve(__dirname + '/../qb-core/')
];
module.exports = {
resolver: {
extraNodeModules,
},
watchFolders
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment