react-native-pdf-to-image-converter
v2.2.2
Published
## Getting started
Downloads
12
Maintainers
Readme
react-native-pdf-to-image-converter
Getting started
$ npm install react-native-pdf-to-image-converter --save
Mostly automatic installation
$ react-native link react-native-pdf-to-image-converter
Manual installation
Android
- Open up
android/app/src/main/java/[...]/MainActivity.java
- Add
import com.reactlibrary.RNPdfToImageConverterPackage;
to the imports at the top of the file - Add
new RNPdfToImageConverterPackage()
to the list returned by thegetPackages()
method
- Append the following lines to
android/settings.gradle
:include ':react-native-pdf-to-image-converter' project(':react-native-pdf-to-image-converter').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-pdf-to-image-converter/android')
- Insert the following lines inside the dependencies block in
android/app/build.gradle
:compile project(':react-native-pdf-to-image-converter')
Usage
import RNPdfToImageConverter from 'react-native-pdf-to-image-converter';
// TODO: What to do with the module?
RNPdfToImageConverter;