VerifyAI React Native SDK
Add AI-powered photo verification to your React Native app in minutes. Native camera UI, on-device processing, and offline support included.
Quick Start
1. Install
npm install @switchlabs/verify-ai-react-native2. Use
import { useVerifyAI } from '@switchlabs/verify-ai';
const { presentScanner } = useVerifyAI({
apiKey: 'vi_live_...',
});
const handleVerify = async () => {
const result = await presentScanner({
policy: 'scooter_parking',
});
if (result.isCompliant) {
console.log('Verified:', result.verificationId);
} else {
Alert.alert('Issue found', result.feedback);
}
};Features
Native Camera UI
Pre-built camera overlay with real-time guidance for optimal photo capture. Customizable themes and branding.
On-Device AI
AI processing happens on the user's device. Sub-200ms latency with no cloud round-trips required.
Offline Support
Full verification works without internet. Results queue and sync automatically when connection returns.
TypeScript Support
Full TypeScript definitions included. Autocomplete and type checking for all API methods.
Hooks API
React hooks-based API (useVerifyAI) for clean integration with functional components.
Expo Compatible
Works with both bare React Native and Expo managed workflow projects.
Code Examples
Requirements
- React Native 0.70 or higher
- iOS 14+ / Android API 24+
- Camera permission configured in app
- VerifyAI API key (free sandbox available)
- Expo SDK 49+ (if using Expo)
Frequently Asked Questions
Start Building with React Native
Get your free API key and integrate VerifyAI in minutes.