Coder Social home page Coder Social logo

Does this package support mac os react native? invariant violation: turbomoduleregistry.getenforcing(...): 'rndocumentpicker' could not be found. verify that a module by this name is registered in the native binary. about react-native-document-picker HOT 11 CLOSED

atiqulislamwb avatar atiqulislamwb commented on June 30, 2024 1
Does this package support mac os react native? invariant violation: turbomoduleregistry.getenforcing(...): 'rndocumentpicker' could not be found. verify that a module by this name is registered in the native binary.

from react-native-document-picker.

Comments (11)

HyperNovax avatar HyperNovax commented on June 30, 2024 4

I have the same error on Android when I update the package from 8.0.0 to the last version.
Error appears when I start jest test.

from react-native-document-picker.

LushawnDev avatar LushawnDev commented on June 30, 2024 2

For people running into the Invariant Violation: TurboModuleRegistry.getEnforcing(...): 'RNDocumentPicker' could not be found error on Android, here's a fix that worked for me.

  1. Remove the package to start with: npm remove react-native-document-picker
  2. Install version 8.0.0 npm install [email protected]

Preliminary but this has worked for me. Good luck!

from react-native-document-picker.

vonovak avatar vonovak commented on June 30, 2024 1

Hello and thanks for asking,
macOS is not officially supported but if you want to, you can contribute and maintain the macOS part.
Thank you 🙂

from react-native-document-picker.

sekoyo avatar sekoyo commented on June 30, 2024 1

I'm not knowledgable with how TurboModules work. I use this mock taken from another thread to unblock my Jest tests.

jest.mock("react-native/Libraries/TurboModule/TurboModuleRegistry", () => {
  const turboModuleRegistry = jest.requireActual("react-native/Libraries/TurboModule/TurboModuleRegistry");
  return {
    ...turboModuleRegistry,
    getEnforcing: name => {
      if (name === "RNDocumentPicker") {
        return null;
      }
      return turboModuleRegistry.getEnforcing(name);
    }
  };
});

This happened since v9 running Jest and this fixed it thanks

from react-native-document-picker.

jesushd103 avatar jesushd103 commented on June 30, 2024

same here! any solution?

from react-native-document-picker.

atiqulislamwb avatar atiqulislamwb commented on June 30, 2024

so a person wants to build a Mac OS app, how he/she could pick files (like image, video) from a Mac device?

from react-native-document-picker.

gegana avatar gegana commented on June 30, 2024

I'm not knowledgable with how TurboModules work. I use this mock taken from another thread to unblock my Jest tests.

jest.mock("react-native/Libraries/TurboModule/TurboModuleRegistry", () => {
  const turboModuleRegistry = jest.requireActual("react-native/Libraries/TurboModule/TurboModuleRegistry");
  return {
    ...turboModuleRegistry,
    getEnforcing: name => {
      if (name === "RNDocumentPicker") {
        return null;
      }
      return turboModuleRegistry.getEnforcing(name);
    }
  };
});

from react-native-document-picker.

tahahaz1374 avatar tahahaz1374 commented on June 30, 2024

I have same Issue when upgrading to latest version and running android 😑
any solution?

from react-native-document-picker.

ArturoLlC avatar ArturoLlC commented on June 30, 2024

Same error here on android

from react-native-document-picker.

chulphan avatar chulphan commented on June 30, 2024

Build on XCode, it has worked for me.

from react-native-document-picker.

vonovak avatar vonovak commented on June 30, 2024

Closing, as mac os support is on the roadmap: https://react-native-documents.github.io/docs/sponsor-only/roadmap-and-changelog

and partly it's a duplicate of #702

Thank you!

from react-native-document-picker.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.