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
{{ message }}
Repository navigation
Warning: Native component for "RCTPdf" does not exist #2
How do you use it? in your app or only my example?
If my example, you should "npm install" first to install dependent modules.
If use it in your app, please
npm install react-native-pdf --save
react-native link react-native-pdf
and
npm install react-native-fetch-blob --save
react-native link react-native-fetch-blob
I was able to fix it. I think the link isn't working as expected.
I had to edit the MainApplication.java with:
...
import org.wonday.pdf.RCTPdfView;
import com.RNFetchBlob.RNFetchBlobPackage;
...
public class MainApplication extends NavigationApplication {
...
protected List<ReactPackage> getPackages() {
// Add additional packages you require here
// No need to add RnnPackage and MainReactPackage
return Arrays.<ReactPackage>asList(
new RNFetchBlobPackage(),
new RCTPdfView()
);
}
}
Reacted by Ruslan Fateev, Franze M, Ramiah Viknesh(BV), Richard Rosko, Cristian Avila, Alejandro Villanueva, Bruno Gois and zedart
Reacted by Ruslan Fateev, Franze M, Chia Yu Pai, Richard Rosko, Alejandro Villanueva and zedart
Reacted by Franze M, Richard Rosko, Spaiz-01, Alejandro Villanueva and zedart
I was able to fix it. I think the link isn't working as expected.
I had to edit the MainApplication.java with:
...
import org.wonday.pdf.RCTPdfView;
import com.RNFetchBlob.RNFetchBlobPackage;
...
public class MainApplication extends NavigationApplication {
...
protected List<ReactPackage> getPackages() {
// Add additional packages you require here
// No need to add RnnPackage and MainReactPackage
return Arrays.<ReactPackage>asList(
new RNFetchBlobPackage(),
new RCTPdfView()
);
}
}
Activity
wonday commentedon May 4, 2017
How do you use it? in your app or only my example?
If my example, you should "npm install" first to install dependent modules.
If use it in your app, please
npm install react-native-pdf --save
react-native link react-native-pdf
and
npm install react-native-fetch-blob --save
react-native link react-native-fetch-blob
wonday commentedon May 15, 2017
@Tako
I closed this.
If you still have problem, please give me more info and reopen it.
joa-queen commentedon Sep 25, 2017
I'm getting the same error.
joa-queen commentedon Sep 25, 2017
I was able to fix it. I think the link isn't working as expected.
I had to edit the MainApplication.java with:
Ble3k commentedon Oct 10, 2017
Add an answer above to README.me please
wonday commentedon Oct 10, 2017
I have added it to README.me.
Spaiz-01 commentedon Jun 13, 2019
it's work for me