module.exports = {
  presets: ['module:@react-native/babel-preset'],
  plugins: [
    // 'react-native-reanimated/plugin',
    'react-native-worklets/plugin',
    '@babel/plugin-transform-export-namespace-from',
    [
      'module-resolver',
      {
        root: ['./src'],
        extensions: ['.ios.js', '.android.js', '.js', '.ts', '.tsx', '.json'],
        alias: {
          components: './src/components',
          assets: './src/assets',
          api: './src/api',
          helpers: './src/helpers',
          icons: './src/assets/icons',
          screens: './src/screens',
          store: './src/store',
          navigator: './src/navigators',
          types: './src/types',
          images: './src/assets/images',
          constants: './src/constants',
          layouts: './src/layouts',
        },
      },
    ],
    [
      'module:react-native-dotenv',
      {
        moduleName: '@env',
        path: '.env',
        safe: false,
        allowUndefined: false,
      },
    ],
  ],
};
