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 installThe 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.
| Policy | Behaviour |
|---|---|
| SILENT | Detect silently — no UI shown |
| WARN_ONLY | Show dismissible warning (default) |
| BLOCK_ON_HIGH | Block app on high severity threats |
| BLOCK_ON_CRITICAL | Block app on critical threats only |
Need full API documentation?
Complete reference, threat coverage, and compliance guides are available after onboarding.