kit*_*une 5 jailbreak package.json react-native
在 React Native 中,我找到了两个插件来检查设备(iOS/Android)是否越狱/root:
我首先尝试了 npm 包react-native-is-device-rooted但它不起作用,而且似乎已经过时了。所以我尝试了 Jail Monkey,但出现以下错误:
代码是:
import JailMonkey from 'jail-monkey'
export default class Welcome extends Component {
render() {
return (
...
<View style={styles.lowerView}>
<CustomButton text={"Jail Monkey"} onPress={() => this.printJailMonkey()}/>
</View>
...
);
}
printJailMonkey = () => {
console.log("Jail Monkey library content: " + JailMonkey.isJailBroken())
}
}
Run Code Online (Sandbox Code Playgroud)
我已经仔细检查了包的手动链接(使用 Xcode、pod install 等......)。没有任何效果,有人可以帮助我吗?
| 归档时间: |
|
| 查看次数: |
2656 次 |
| 最近记录: |