VeilVeil

React Native SDK

Veil RASP for React Native — wraps the native Android and iOS SDKs via a JS bridge.

1

Add the package

yarn add react-native-veil

# iOS — install pods
cd ios && pod install

The AAR and XCFramework are bundled in the package — no manual file copying needed.

2

Initialize

Call once at app startup. Your credentials are available in the Veil dashboard.

import Veil from 'react-native-veil';
import { useEffect } from 'react';

export default function App() {
  useEffect(() => {
    Veil.initialize({
      clientId: 'your-client-id',
      appId:    'your-app-id',
      appName:  'My App',
      apiKey:   'td_live_...',
      policy:   'WARN_ONLY',
    });

    return () => Veil.stopMonitoring();
  }, []);

  return <YourApp />;
}
3

Choose a policy

Control how the SDK reacts when threats are detected.

PolicyBehaviour
SILENTDetect silently — no UI shown
WARN_ONLYShow dismissible warning (default)
BLOCK_ON_HIGHBlock app on high severity threats
BLOCK_ON_CRITICALBlock app on critical threats only

Need full API documentation?

Complete reference, threat coverage, and compliance guides are available after onboarding.

Book a demo →