babel-plugin-react-native-image-source-to-base64

Usage

Step 1: Install

yarn add -D babel-plugin-react-native-image-source-to-base64

or

npm install --save-dev babel-plugin-react-native-image-source-to-base64

Step 2: Configure babel.config.js

module.exports = {
  presets: ['module:metro-react-native-babel-preset'],
  plugins: [['react-native-image-source-to-base64', {limit: 2 * 1024}]],
};