expo-merge-base64-images
v0.1.7
Published
to merge images in expo
Maintainers
Readme
expo-merge-base64-images
A native Expo module that merges two base64-encoded images into a single PNG image on Android.
📦 Installation
For managed Expo projects
❗ This module requires a custom development client (i.e. not supported in Expo Go).
- Install the package:
npx expo install expo-merge-base64-images- Run your app with a custom development client:
npx expo run:androidFor bare React Native projects
- Install the package:
npm install expo-merge-base64-images- Install native dependencies:
npx pod-install🔧 Android Configuration
No additional steps required if you’re using expo run:android.
📖 Usage
import mergeImages from 'expo-merge-base64-images';
const result = await mergeImages(base64_1, base64_2);
// result is a base64-encoded PNG imageYou can then convert it to a file, use it in an <Image> component, or upload it.
📚 API
mergeBase64Images(base64_1: string, base64_2: string): Promise<string>
Returns a base64-encoded PNG that combines the two input images vertically.
🤝 Contributing
Contributions are very welcome! Please refer to the Expo contributing guide.
