# ActiveFence Video Content Moderation (/en/realtime-media/marketplace/build/add-moderation-and-intelligence/activefence/react-native)

> For AI agents: see the complete documentation index at [llms.txt](/llms.txt).

[ActiveFence](https://www.activefence.com/) provides trust and safety solutions to protect online platforms and their users from malicious behavior and content. By integrating ActiveFence capabilities in your app, you can design the exact content moderation solution you need. Content moderation is powered by AI-driven automated detection for text, audio, image, and video content, enabling you to moderate, enforce policies, manage user flags, and send notifications across multiple abuse areas and languages.

      
  
      
  
      
  
      
  
      
    ## Prerequisites [#prerequisites-4]

    * React Native 0.60 or later.
    * Node 10 or later.
    * Implemented the [SDK quickstart](../../../video/quickstart.mdx).

    ## Integrate the extension [#integrate-the-extension-4]

    ### Initialize `ContentInspectConfig` [#initialize-contentinspectconfig-2]

    ```tsx
    const contentInspectModule: ContentInspectModule = {
      type: ContentInspectType.ContentInspectModeration,
      interval: 5,
    };
    const contentInspectConfig: ContentInspectConfig = {
      modules: [contentInspectModule],
      moduleCount: 1,
      extraInfo: 'YourExtraInfo',
    };
    ```

    ### Apply `ContentInspectConfig` [#apply-contentinspectconfig-2]

    ```tsx
    const returnVal = agoraEngine?.enableContentInspect(true, contentInspectConfig);
    ```

    ### Catch banning events [#catch-banning-events-3]

    ```tsx
    agoraEngine?.addListener(
      'onConnectionStateChanged',
      (connection, state, reason) => {
        if (
          state === ConnectionStateType.ConnectionStateFailed &&
          reason === ConnectionChangedReasonType.ConnectionChangedBannedByServer
        ) {
          console.log('Stream banned by the server');
        }
      },
    );
    ```

    
  
