Comments (11)
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.
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.
- Remove the package to start with:
npm remove react-native-document-picker
- Install version 8.0.0
npm install [email protected]
Preliminary but this has worked for me. Good luck!
from react-native-document-picker.
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.
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.
same here! any solution?
from react-native-document-picker.
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.
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.
I have same Issue when upgrading to latest version and running android 😑
any solution?
from react-native-document-picker.
Same error here on android
from react-native-document-picker.
Build on XCode, it has worked for me.
from react-native-document-picker.
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)
- Cant pick any PDF or DOC - requires that you obtain access using ACTION_OPEN_DOCUMENT or related. HOT 2
- Build Failed!. Error while running on ios HOT 1
- when i use pickMultiple it shows me alert "unknown error". please guide HOT 1
- Android App crashing HOT 1
- Picking a document inside Android Work Profile via Google Drive crashing app HOT 1
- [Android 13, 14]: DocumentPicker throws an error [Error: User canceled document picker] HOT 5
- Bug report: selecting images from the Gallery(IOS) HOT 3
- index.js: [BABEL]: Cannot use import statement outside a module HOT 1
- Build Failed!. Error while running on ios HOT 3
- Invariant Violation: TurboModuleRegistry.getEnforcing(...): 'RNDocumentPicker' could not be found in v9.1.1 HOT 5
- How to set max file selection limit in pickMultiple HOT 1
- type: types.pdf does not limit the selection HOT 5
- Support for open office/libre type? HOT 1
- After click on upload HOT 1
- error if i click on upload HOT 1
- Error: No such file iOS HOT 3
- Unable to build 9.0.0 and up due to undefined symbols on ios HOT 6
- DocumentPicker.pickDirectory() is not working on ios HOT 1
- Invariant Violation: TurboModuleRegistry.getEnforcing(...): 'RNDocumentPicker' could not be found. Verify that a module by this name is registered in the native binary.Bridgeless mode: false. HOT 1
- Pick method in DocumentPicker causes Drawer is overflowed. HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-native-document-picker.