https://github.com/GeekyAnts/NativeBase
Raw File
Tip revision: 9e5bb251f866d7e83afab4016eb0dd9396696c24 authored by Rohit Singh on 21 March 2022, 13:39:24 UTC
feat: v3.3.x theme object export
Tip revision: 9e5bb25
babel.config.js
const path = require('path');
const pak = require('../package.json');

module.exports = function (api) {
  api.cache(true);
  return {
    presets: ['babel-preset-expo'],
    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