react-native-template-by-nh
Version:
React Native Template for a quick start with TypeScript using best existing libraries and scalable structure
36 lines (34 loc) • 797 B
JavaScript
module.exports = {
presets: ['module:@react-native/babel-preset'],
plugins: [
[
'module-resolver',
{
root: ['./src'],
extensions: [
'.ios.ts',
'.android.ts',
'.ts',
'.ios.tsx',
'.android.tsx',
'.jsx',
'.js',
'.json',
],
alias: {
'@config': './src/config',
'@constants': './src/constants',
'@hooks': './src/hooks',
'@lib': './src/lib',
'@navigation': './src/navigation',
'@screens': './src/screens',
'@store': './src/store',
'@ui': './src/ui',
'@utils': './src/utils',
'@translation': './src/translation',
'@root': '.',
},
},
],
],
};