d

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore.

15 St Margarets, NY 10033
(+381) 11 123 4567
ouroffice@aware.com

 

KMF

Generate Images From Layers In React Native

A React Native library for generating images from other images.

How to use it:

1. Install and import the react-native-image-generator component.

# Yarn
$ yarn add react-native-image-generator

# NPM
$ npm i react-native-image-generator
import { generate } from 'react-native-image-generator';

2. Combine two images into a new one.

const r = await generate(
  [
    {
      uri: 'image1.jpg',
      width: 200,
      height: 300,
      x: 0,
      y: 0,
    },
    {
      uri: 'Mario', // named asset 
      width: 200,
      height: 300,
      x: 0,
      y: 0,
    },
  ],
  {
    filename: 'result.png',
    width: 200,
    height: 300,
  }
);

Preview:

Generate Images From Layers In React Native

Download Details:

Author: evgenusov

Live Demo: View The Demo

Download Link: Download The Source Code

Official Website: https://github.com/evgenusov/react-native-image-generator

License: MIT

Credit: Source link

Previous Next
Close
Test Caption
Test Description goes like this