@acetyld/react-native-images-combine

1.0.2 • Public • Published

@acetyld/react-native-images-combine

[//]: # THIS IS A FORK O()

React Native Library for combine images

Getting started

$ npm install @acetyld/react-native-images-combine --save

iOS

  1. cd ios
  2. pod install

Usage

import ImagesCombineLibrary from '@acetyld/react-native-images-combine';

ImagesCombineLibrary.combineImages([
  Image.resolveAssetSource(require('../images/test1.png')),
  Image.resolveAssetSource(require('../images/test2.png'))
]).then((base64) => {
              
});

Web Images, DynamicFiles, or Base64

Alternatively if you have a dynamic url android and iOS or file iOS only use the following syntax

import ImagesCombineLibrary from '@acetyld/react-native-images-combine';

const image1 = base64Asset // any base64 asset
const image2 = fileUriAsset // any file url asset example file:///data/user/0/com.myapp//cache/tempitem.png
      ImagesCombineLibrary.combineImages([
        { uri: image1 },
        { uri: image2 },
      ]).then(base64 => {
        // do something here
      })

Readme

Keywords

Package Sidebar

Install

npm i @acetyld/react-native-images-combine

Weekly Downloads

4

Version

1.0.2

License

none

Unpacked Size

84.5 kB

Total Files

20

Last publish

Collaborators

  • acetyld