Commit c04a78eb authored by Muhammad Handharbeni's avatar Muhammad Handharbeni

add readme

parent 9a1cf7d4
......@@ -14,18 +14,22 @@
#### Android
1. Open up `android/app/src/main/java/[...]/MainActivity.java`
- Add `import com.mhandharbeni.benibeacon.RNBenibeaconPackage;` to the imports at the top of the file
- Add `new RNBenibeaconPackage()` to the list returned by the `getPackages()` method
2. Append the following lines to `android/settings.gradle`:
1. Append the following lines to `android/settings.gradle`:
```
include ':react-native-benibeacon'
project(':react-native-benibeacon').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-benibeacon/android')
```
3. Insert the following lines inside the dependencies block in `android/app/build.gradle`:
2. Insert the following lines inside the dependencies block in `android/app/build.gradle`:
```
compile project(':react-native-benibeacon')
implementation project(':react-native-benibeacon')
```
3. Open up `android/app/src/main/java/[...]/MainApplication.java`
- Add `import com.mhandharbeni.benibeacon.RNBenibeaconPackage;` to the imports at the top of the file
- Add `new RNBenibeaconPackage()` to the list returned by the `getPackages()` method
4. Open up `android/app/src/main/java/[...]/MainActivity.java`
- Add `import com.mhandharbeni.benibeacon.RNBenibeaconModule;` to the imports at the top of the file
- Add ` RNBenibeaconModule.checkPermissions(MainActivity.this, getApplicationContext());` to the `onCreate` method
## Usage
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment