Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Warning: Native component for "RCTPdf" does not exist #2

Closed
Tako opened this issue May 4, 2017 · 7 comments
Closed

Warning: Native component for "RCTPdf" does not exist #2

Tako opened this issue May 4, 2017 · 7 comments

Comments

@Tako
Copy link

Tako commented May 4, 2017

Still getting Warning: Native component for "RCTPdf" does not exist message on console.

@wonday
Copy link
Owner

wonday commented 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
Copy link
Owner

wonday commented May 15, 2017

@Tako
I closed this.
If you still have problem, please give me more info and reopen it.

@wonday wonday closed this as completed May 15, 2017
@joa-queen
Copy link

I'm getting the same error.

@joa-queen
Copy link

joa-queen commented 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:

...
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()
        );
  }
}

@Ble3k
Copy link

Ble3k commented Oct 10, 2017

Add an answer above to README.me please

@wonday
Copy link
Owner

wonday commented Oct 10, 2017

I have added it to README.me.

@Spaiz-01
Copy link

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()
        );
  }
}

it's work for me

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants