Skip to content

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

Closed

Description

@Tako

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

Activity

  1. wonday commented on May 4, 2017

    @wonday
    Owner

    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

  2. wonday commented on May 15, 2017

    @wonday
    Owner

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

  3. joa-queen commented on Sep 25, 2017

    @joa-queen

    I'm getting the same error.

  4. joa-queen commented on Sep 25, 2017

    @joa-queen

    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()
            );
      }
    }
    
  5. Ble3k commented on Oct 10, 2017

    @Ble3k

    Add an answer above to README.me please

  6. wonday commented on Oct 10, 2017

    @wonday
    Owner

    I have added it to README.me.

  7. Spaiz-01 commented on Jun 13, 2019

    @Spaiz-01

    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions