Comments (7)
Hi
May be some setting is wrong/non-standard in your android project.
You can manual add the config.
-
install modules
npm install react-native-pdf --save
npm install react-native-fetch-blob --save -
add the following code to MainApplication.java
@Override
protected List<ReactPackage> getPackages() {
return Arrays.<ReactPackage>asList(
new MainReactPackage(),
new RNFetchBlobPackage(), //add this
new RCTPdfView() //add this
);
}
};
- add the following code to android/setting.gradle
include ':react-native-pdf'
project(':react-native-pdf').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-pdf/android')
include ':react-native-fetch-blob'
project(':react-native-fetch-blob').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-fetch-blob/android')
- add the following code to android/app/build.gradle
dependencies {
compile project(':react-native-pdf') //add this
compile project(':react-native-fetch-blob') //add this
}
for detail, you can init a new project and diff with my example project.
Hope this can help you. :-)
from react-native-pdf.
react-native link failed for me in RN 0.54, these instructions helped a lot!
from react-native-pdf.
Thanks so much for your assistance as a deeper dive indeed fixed the issues.
from react-native-pdf.
With reference to issue #2, react-native-fetch-blob
has been renamed to rn-fetch-blob
since rn-fetch-blob v0.10.9 on June 24th.
from react-native-pdf.
Is there any manual Installation for IOS?
from react-native-pdf.
react-native link
works fine for iOS for me. I will probably use git diff to see the changes in the files to figure out the what react-native link
did to manually install it.
from react-native-pdf.
Note that react-native-fetch-blob
has been renamed to rn-fetch-blob
(the README mentions it by the updated name) so you will want to ensure that your settings.gradle
and app/build.gradle
refer to rn-fetch-blob
instead.
from react-native-pdf.
Related Issues (20)
- Requires that you obtain access using ACTION_OPEN_DOCUMENT or related APIs HOT 2
- Invariant Violation: requireNativeComponent: "RCTPdf" was not found in the UIManager.
- Need to update the version of the dependency library. HOT 1
- Starting Page is little bit scrolled up when {cache: true} HOT 1
- Critical security vulnerability due to crypto-js on v6.7.1 HOT 8
- error: cannot find symbol import com.wonday.rnpdf.RNPDFPackage; HOT 14
- package name missing from androidManifest causes pod install error HOT 3
- PDF preview issue in Android & iOS HOT 5
- import undefined.RNPDFPackage error with 6.7.3 HOT 5
- crypto-js is no longer maintained HOT 1
- App Crash with this.lastRNBFTask.cancel is not a function HOT 21
- 6.7.4 build issue HOT 1
- Please add lazy load function with large pdf file HOT 1
- import undefined.RNPDFPackage error HOT 4
- crypto-js 3.3.0 is vulnerable and please update to 4.2.0+ HOT 1
- Unable to load file from local file system HOT 1
- Unable to read online insecure PDF file HOT 3
- Double Tap on pdf Zoom disable Issue HOT 1
- Source file at path`xxxxxxxxxxxxxxxxxxxx.pdf.tmp` does not exist HOT 9
- iOS: 'yoga/style/Style.h' Not Found with New Architecture Enabled HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-native-pdf.