react-native-tiff-converter
v0.0.66
Published
Convert tiff to image in react native. Support multi page TIFF.
Downloads
159
Readme
This is a new React Native project, bootstrapped using @react-native-community/cli
.
Getting Started
Note: Make sure you have completed the React Native - Environment Setup instructions till "Creating a new application" step, before proceeding.
Install package
# using npm
npm i react-native-tiff-converter
# OR using Yarn
yarn add react-native-tiff-converter
Use convert function
import { convertTiffToPng } from 'react-native-tiff-converter';
const pngFilePaths = await convertTiffToPng(filePath, 'fileId');
// pngFilePaths - array with uri to each page
// fileId - optional, needed in case you do not want to overwrite previous files