Skip to content

tponte/react-native-rootbeer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

react-native-rootbeer

Getting started

$ npm install react-native-rootbeer --save

Mostly automatic installation

$ react-native link react-native-rootbeer

Manual installation

Android

  1. Open up android/app/src/main/java/[...]/MainActivity.java
  • Add import com.reactlibrary.RNRootbeerPackage; to the imports at the top of the file
  • Add new RNRootbeerPackage() to the list returned by the getPackages() method
  1. Append the following lines to android/settings.gradle:
    include ':react-native-rootbeer'
    project(':react-native-rootbeer').projectDir = new File(rootProject.projectDir, 	'../node_modules/react-native-rootbeer/android')
    
  2. Insert the following lines inside the dependencies block in android/app/build.gradle:
      compile project(':react-native-rootbeer')
    

Usage

import RNRootbeer from 'react-native-rootbeer';

// Checking if rooted
const isRooted = await RNRootbeer.isRooted()
// OR
const isRootedWithBusyBoxCheck = await RNRootbeer.isRootedWithBusyBoxCheck()

About

Wrapper to use rootbeer library in react native

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published