module.exports = function (api) {
  api.cache(true);
  return {
    presets: [
      "babel-preset-expo",
     
      [
        "@babel/preset-react",
        {
          runtime: "automatic",
          importSource: '@emotion/react'
        }
      ],
     
    ],
    plugins: [
      [
        'babel-plugin-inline-react-svg',
        {
          ignorePattern: '\\.native\\.svg$', // Optional: Customize ignored patterns
        },
      ],
      [
        'module-resolver',
        {
          root: ['./'],
          alias: {
            '@': './',
            "@assets": "./assets"
          },
          extensions: ['.js', '.jsx', '.ts', '.tsx', '.json'],
        },
      ],
    ],
  };
};