---
description: Handle consent using AATKit simple consent
---

# Simple Consent

### Introduction

To set if the user has given or withheld consent for the collection and use of personal data (used for non-IAB partners), use the SimpleConsent.

### Usage

To define if the user has given or withheld consent for the collection and use of personal data (used for non-IAB partners) set configuration type parameter as `RNAatkit.ConsentType_SimpleConsent` and use `nonIABConsent` parameter as:

* `RNAatkit.SimpleConsent_Obtained` if the user has given the consent.
* `RNAatkit.SimpleConsent_Withheld` if the user has declined.

If SimpleConsent is used, it will automatically read the IAB Consent String stored (by third-party CMP) in SharedPreferences (if available).

```javascript
RNAatkit.initWithConfiguration({
    consent: {
        "type": RNAatkit.ConsentType_SimpleConsent,
        "nonIABConsent": RNAatkit.SimpleConsent_Obtained,
    }
})
```
