https://github.com/GeekyAnts/NativeBase
Raw File
Tip revision: 13475ba53d1d4f5751ee5633769f27dc08906078 authored by Viraj-10 on 06 June 2022, 14:05:11 UTC
fix: factory fn memo for makestyle component
Tip revision: 13475ba
babel.config.js
const path = require('path');
const pak = require('../package.json');

module.exports = function (api) {
  api.cache(true);
  return {
    presets: [['babel-preset-expo', { jsxRuntime: 'classic' }]],
    plugins: [
      [
        'module-resolver',
        {
          alias: {
            // For development, we want to alias the library to the source
            [pak.name]: path.join(__dirname, '..', pak.source),
          },
        },
      ],
    ],
  };
};
back to top