# grouplink-sdk
This is the Group Link SDK for React Native to use in Android and iOS Devices.

## Instalation

```sh
npm install @grouplinknetwork/rn-grouplink-sdk

yarn add @grouplinknetwork/rn-grouplink-sdk
```

## Usage
How to use the Group Link SDK for React Native.

### Import ```Group Link SDK```
```sh
import * as GroupLinkSDK from '@grouplinknetwork/rn-grouplink-sdk';
```

### startGrouplink

```sh
export default function App() {
  useEffect(()=>{
        GroupLinkSDK.startGrouplink("GROUP_LINK_TOKEN", isDebuggable);
    },[])
  return (
    <View style={styles.container}>
      <Text>Este é um aplicativo de teste</Text>
    </View>
  );
}
```

## Supported methods
All the following methods are included in the Group Link SDK Plugin:


### startGrouplink
Usage: Start the Group Link SDK.


### startGrouplinkIOS
Usage: Start the Group Link SDK only in Android.


### startSDKiOS
Usage: Start the Group Link SDK only in iOS.


### startLocation
Usage: Start the location, and request it in app.


### startLocationIOS
Usage: Start the location in iOS, and request it in app.


### startLocationAndroid
Usage: Start the location in android, and request it in app.


### startBluetooth
Usage: Start the bluetooth, and request it in app.


### startBluetoothAndroid
Usage: Start the bluetooth in Android, and request it in app.


### startBluetoothIOS
Usage: Start the bluetooth in iOS, and request it in app.


### requestFullIntentPermissionAndroid
Usage: Request the full intent permission in settings of android mobile phone.


### requestScheduleExactAlarmPermissionAndroid
Usage: Request the schedule exact alarm permission.
