Skip to content

plus24-library/react-native-rootbeer

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 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-react-native-rootbeer'
    project(':react-native-react-native-rootbeer').projectDir = new File(rootProject.projectDir, 	'../node_modules/react-native-react-native-rootbeer/android')
    
  2. Insert the following lines inside the dependencies block in android/app/build.gradle:
      compile project(':react-native-react-native-rootbeer')
    

Usage

import RNRootbeer from 'react-native-rootbeer';

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

About

Wrapper to use rootbeer library in react native

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 94.3%
  • JavaScript 5.7%