babel-plugin-react-native-image-to-base64
v0.0.1
Published
react native build image‘s source transform to base6
Downloads
2
Maintainers
Readme
babel-plugin-react-native-image-to-base64
react native build image‘s source transform to base64
Usage
Step 1: Install
yarn add -D babel-plugin-react-native-image-to-base64or
npm install --save-dev babel-plugin-react-native-image-to-base64Step 2: Configure babel.config.js
module.exports = {
presets: ['module:metro-react-native-babel-preset'],
plugins: [['react-native-image-to-base64', {limit: 2 * 1024}]],
};