2.0.0 • Published 3 years ago

react-native-isrooted v2.0.0

Weekly downloads
2
License
MIT
Repository
github
Last release
3 years ago

react-native-isrooted

Getting started

$ npm install react-native-isrooted --save

AutoLinking

Android
For React Native version >= 0.60.0 will be autolinked

iOS
you need to run, cd ios/ && pod install && cd ..

Manual Linking

For React Native version < 0.60.0
$ react-native link react-native-isrooted

Usage

import DeviceStatus from 'react-native-isrooted';

async componentDidMount(){
   console.log(await DeviceStatus.isRooted());
}

or

componentDidMount(){
   const isRooted = DeviceStatus.isRooted(status => status));
}

Contribution

Thank you all who helped to compile this amazing library.

  • Yang @beast
  • Erandi Hasithanjali @era21