Skip to content

baemingo/react-native-text-to-image

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

react-native-text-to-image

This is a fork of the public repository react-native-text-to-image. The fork aims to more permanently implement a solution whereby the images are not stored on the device, but rather just used as base64 image data. This solution is needed in our POS devices to print reciepts as images.

Getting started

$ yarn add react-native-text-to-image

Mostly automatic installation

$ react-native link react-native-text-to-image

Usage

import TextToImage from 'react-native-text-to-image';

TextToImage.convert(text, fontName, fontSize, color, destinationUri => {
    // use image uri here.
});

About

Convert text string to png image

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Objective-C 50.6%
  • Java 30.4%
  • Ruby 16.7%
  • JavaScript 2.3%