-
-
Notifications
You must be signed in to change notification settings - Fork 29
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
'ReactNativeKCKeepAwake' could not be found. Verify that a module by this name is registered in the native binary. #11
Comments
Same here. Cant run on android. |
We have a app running with older builds, I haven't touched react-native in a while so I cannot debug this atm. |
Same on iOS latest RN |
I am getting a similar error, but only when running tests with jest:
Version 1.2.3 Any ideas? |
Hey @owlfrancesco, I also encounter the same. I solved it by adding a mock for jest.mock('react-native/Libraries/TurboModule/TurboModuleRegistry', () => {
const turboModuleRegistry = jest.requireActual('react-native/Libraries/TurboModule/TurboModuleRegistry');
return {
...turboModuleRegistry,
getEnforcing: (name) => {
// List of TurboModules libraries to mock.
const modulesToMock = ['ReactNativeKCKeepAwake'];
if (modulesToMock.includes(name)) {
return null;
}
return turboModuleRegistry.getEnforcing(name);
},
};
}); |
I am getting the above error after installing the library.
On iOS, I figured I have to install the pods and then the error went away.
Are there further Android installation instructions?
The text was updated successfully, but these errors were encountered: