You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi.
While I have no problems with IOS with the exact setup I've tried to install on a few windows 10 comptuters with RN 0.41 and get the following error
Microsoft Windows [Version 10.0.14393]
(c) 2016 Microsoft Corporation. All rights reserved.
C:\React\nsp\NSPV6\NativeStarterPro-v6.0.0>react-native link react-native-pdf
rnpm-install info Linking react-native-pdf android dependency
rnpm-install ERR! It seems something went wrong while linking. Error: ENOENT: no such file or directory, open 'C:\React\nsp\NSPV6\NativeStarterPro-v6.0.0\android\app\src\main\java\android\support\v7\appcompat\MainApplication.java'
Please file an issue here: https://github.com/facebook/react-native/issues
ENOENT: no such file or directory, open 'C:\React\nsp\NSPV6\NativeStarterPro-v6.0.0\android\app\src\main\java\android\support\v7\appcompat\MainApplication.java'
I have no problem installing and running your eample on the same win 10 computers, a bit lost.
@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. :-)
Reacted by Charly Poppins, Jailson Sousa and Jaime Avendaño
Reacted by Noitidart, Analira Scalabrini, Luis Becerra, Nezzar KEFIF, anexi88 and jeffersonferregato
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.
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.
Activity
wonday commentedon Jul 21, 2017
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
for detail, you can init a new project and diff with my example project.
Hope this can help you. :-)
johntom commentedon Jul 23, 2017
Thanks so much for your assistance as a deeper dive indeed fixed the issues.
Noitidart commentedon Mar 4, 2018
react-native link failed for me in RN 0.54, these instructions helped a lot!
kusakusakusa commentedon Sep 27, 2018
With reference to issue #2,
react-native-fetch-blobhas been renamed torn-fetch-blobsince rn-fetch-blob v0.10.9 on June 24th.hophoppoppop commentedon Oct 2, 2018
Is there any manual Installation for IOS?
kusakusakusa commentedon Oct 3, 2018
react-native linkworks fine for iOS for me. I will probably use git diff to see the changes in the files to figure out the whatreact-native linkdid to manually install it.robzedgames commentedon Sep 5, 2019
Note that
react-native-fetch-blobhas been renamed torn-fetch-blob(the README mentions it by the updated name) so you will want to ensure that yoursettings.gradleandapp/build.gradlerefer torn-fetch-blobinstead.