I am using expo start in the development phase, when I want to test the features like jail-monkey I do an expo prebuild to test that particular feature to not add the ios and android folders to git.
Here I am using a custom hook called useRootDetection. And I want to use JailMonkey only when it's available so I have written the code like the following.
So I'm getting the following error because of one small thing in jail-monkey.js
To resolve this, we have to make a small change to the jail-monkey.js file which is
// Add this (|| {}) to the export default and optional chaining (?.)
androidRootedDetectionMethods: JailMonkey.rootedDetectionMethods, // from this
androidRootedDetectionMethods: JailMonkey?.rootedDetectionMethods || {}, // to this
@crafterm @tommeier @aprct @hisankaran @sonicdoe
I request you to make this necessary change. Thanks.
Thanks y'all for considering, but I got it to work by using npm i patch-package. I didn't know that existed before this. Keeping this issue open, you can consider fixing it.
Hi there,
I am using
expo start
in the development phase, when I want to test the features likejail-monkey
I do anexpo prebuild
to test that particular feature to not add the ios and android folders togit
.Here I am using a custom hook called
useRootDetection
. And I want to useJailMonkey
only when it's available so I have written the code like the following.So I'm getting the following error because of one small thing in
jail-monkey.js
To resolve this, we have to make a small change to the
jail-monkey.js
file which is@crafterm @tommeier @aprct @hisankaran @sonicdoe I request you to make this necessary change. Thanks.