GantMan / jail-monkey

A React Native library for identifying if a phone is rooted or mocking locations
MIT License
585 stars 145 forks source link

Error : Cannot read property 'rootedDetectionMethods' of null #197

Closed shivkushwaha1511 closed 1 year ago

shivkushwaha1511 commented 1 year ago

I am facing these errors when I try to import JailMonkey in my react-native app

import JailMonkey from 'jail-monkey';

Error: WARN JailMonkey is not available, check your native dependencies have linked correctly and ensure your app has been rebuilt ERROR TypeError: Cannot read property 'rootedDetectionMethods' of null, js engine: hermes

image

Can anyone help me with this issue Thanks

shivkushwaha1511 commented 1 year ago

I have solved this error by changing npm registry from official to my comapany registry

npm config set registry https://registry.npmjs.com/ -> npm config set registry <company-registry>