React Native Project to Convert Bulk Images to PDF Document Using react-native-image-to-pdf in Browser Using Javascript




Create a PDF by an Array of images in React-Native.

Getting started

$ npm install react-native-image-to-pdf --save


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

Mostly automatic installation

$ react-native link react-native-image-to-pdf

Manual installation


  1. In XCode, in the project navigator, right click Libraries ➜ Add Files to [your project's name]
  2. Go to node_modules ➜ react-native-image-to-pdf and add RNImageToPdf.xcodeproj
  3. In XCode, in the project navigator, select your project. Add libRNImageToPdf.a to your project’s Build Phases ➜ Link Binary With Libraries
  4. Run your project (Cmd+R)<


  1. Open up android/app/src/main/java/[...]/
  • Add import com.anyline.RNImageToPDF.RNImageToPdfPackage; to the imports at the top of the file
  • Add new RNImageToPdfPackage() to the list returned by the getPackages() method
  1. Append the following lines to android/settings.gradle:
  2. Insert the following lines inside the dependencies block in android/app/build.gradle:







Leave a Reply