> ## Documentation Index
> Fetch the complete documentation index at: https://moengage-sdk-docs.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Initialization

## Overview

This is the final step to activate the MoEngage SDK. Calling the initialize method activates your configurations and lets the SDK start tracking data and handling messages.

<Check>
  You must complete the [installation](/developer-guide/react-native-sdk/sdk-integration/expo/installation) and [configuration](/developer-guide/react-native-sdk/sdk-integration/expo/configure-the-moengage-expo-sdk)guides before you initialize the SDK.
</Check>

## Initialize the SDK

We recommend you initialize the SDK in your app's root component, which is usually App.js or App.tsx. To initialize the SDK, write the following code:

<CodeGroup>
  ```TypeScript TypeScript theme={"theme":{"light":"github-light","dark":"github-dark"}}
  import ReactMoE from 'react-native-moengage';
          useEffect(() = {
  	    ReactMoE.initialize("YOUR_Workspace_ID");
  	},[]);
  ```
</CodeGroup>

The MoEngage SDK is now fully operational in your app.

To see detailed SDK logs in your console for development, initialize with a log configuration. This step is optional.

<CodeGroup>
  ```TypeScript TypeScript theme={"theme":{"light":"github-light","dark":"github-dark"}}
  import { MoEInitConfig, MoEPushConfig, MoEngageLogConfig, MoEngageLogLevel } from "react-native-moengage";
  	const moEInitConfig = new MoEInitConfig(
  	  MoEPushConfig.defaultConfig(),
  	  new MoEngageLogConfig(MoEngageLogLevel.DEBUG, isEnabledForReleaseBuild)
  	);
  	ReactMoE.initialize(YOUR Workspace ID, moEInitConfig);
  ```
</CodeGroup>

<Info>
  The minimum supported version for `expo-notification` is *0.31.0*.
</Info>

## Next steps

With the SDK initialized, you can start using other MoEngage features:

* [Track user events and attributes](/developer-guide/react-native-sdk/data-tracking/tracking-user-attributes-and-user-identity)
* [Set up push notifications](/developer-guide/react-native-sdk/push/basic/android-push-configuration)
* [Implement in-app messages](/developer-guide/react-native-sdk/in-app-messages/inapp-nativ)
