> For the complete documentation index, see [llms.txt](https://aatkit.gitbook.io/aatkit-react-native-integration/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://aatkit.gitbook.io/aatkit-react-native-integration/other/reference/rnaatkit/functions/initwithconfigurationandcallback.md).

# initWithConfigurationAndCallback

### Overview <a href="#markdown-header-overview" id="markdown-header-overview"></a>

Initializes the AATKit library and triggers the passed callback. Should be called once during application initialization before any other calls to AATKit.

### Syntax <a href="#markdown-header-syntax" id="markdown-header-syntax"></a>

```javascript
initWithConfigurationAndCallback(initConfig, callback)
```

initConfig **REQUIRED**

The JSON object containing configuration. Set parameters listed [here](/aatkit-react-native-integration/other/reference/other/configuration-json.md), otherwise AATKit uses default values.

callback **REQUIRED**

*Callback\<Boolean>* Triggered when function completion is done. Passes the boolean value to inform whether AATKit is initialized.

### Examples <a href="#markdown-header-examples" id="markdown-header-examples"></a>

```javascript
RNAatkit.initWithConfigurationAndCallback(
    {
        testModeAccountID: 136
    },
    (initialized) => {
        console.log("AATKit initialized: " + initialized);
    });
    );
```
