Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
return path.join(
resolveModule(root, 'react-native'),
'Libraries'
);
}
return resolveModule(root, _);
}
return path.join(resolveModule(root, _.name), _.directory);
}),
hasteOptions: hasteOptions || {},
}),
/**
* This is required by asset loader to resolve extra scales
* It will resolve assets like image@1x.png when image.png is not present
*/
new AssetResolver({ platform, runtime }),
],
/**
* Match what React Native packager supports.
* First entry takes precedence.
*/
mainFields: ['react-native', 'browser', 'main'],
aliasFields: ['react-native', 'browser', 'main'],
extensions: [
`.${platform}.js`,
`.${platform}.jsx`,
'.native.js',
'.native.jsx',
'.js',
'.jsx',
`.${platform}.ts`,
`.${platform}.tsx`,
return path.join(
resolveModule(root, 'react-native'),
'Libraries'
);
}
return resolveModule(root, _);
}
return path.join(resolveModule(root, _.name), _.directory);
}),
hasteOptions: hasteOptions || {},
}),
/**
* This is required by asset loader to resolve extra scales
* It will resolve assets like image@1x.png when image.png is not present
*/
new AssetResolver({ platform, runtime }),
],
/**
* Match what React Native packager supports.
* First entry takes precedence.
*/
mainFields: ['react-native', 'browser', 'main'],
aliasFields: ['react-native', 'browser', 'main'],
extensions: [
`.${platform}.js`,
`.${platform}.jsx`,
'.native.js',
'.native.jsx',
'.js',
'.jsx',
`.${platform}.ts`,
`.${platform}.tsx`,