Mobile SDK
Native Surveys in Every App
Embed beautiful, fully-featured surveys directly in your mobile app. Four native SDKs covering every major platform, all powered by a shared TypeScript core — with offline support, biometric security, and all 35+ question types.

TypeScript Core
@claform/sdk-core
Platform-agnostic core engine with zero dependencies. Powers all other SDKs with shared logic, validation, and state management.
Install
npm install @claform/sdk-coreimport { SurveySDK } from '@claform/sdk-core';
const sdk = new SurveySDK({ apiUrl: 'https://api.claform.com/api/v1' });
await sdk.loadSurvey('your-survey-id');
sdk.setAnswer(questionId, value); // logic, validation, piping, quiz
await sdk.nextPage(); // all evaluated deterministically
const result = await sdk.submit(); // online or queued offlineReact Native
@claform/sdk-react-native
Full React Native UI wrapping the core SDK. 35+ question type components, 12 hooks, gesture-based navigation, and theme support.
Install
npm install @claform/sdk-react-native @claform/sdk-coreimport { SurveyProvider, SurveyScreen } from '@claform/sdk-react-native';
export default function App() {
return (
<SurveyProvider
config={{ apiUrl: 'https://api.claform.com/api/v1', surveyId: 'your-survey-id' }}
>
<SurveyScreen onComplete={(res) => console.log('done', res)} />
</SurveyProvider>
);
}Flutter
claform_sdk_flutter
Pure Dart implementation with Material 3 theming. Provider-based state management, 35+ widget types, and full offline support.
Install
flutter pub add claform_sdk_flutterimport 'package:claform_sdk_flutter/claform_sdk_flutter.dart';
final sdk = SurveySDK(
config: SurveyConfig(apiUrl: 'https://api.claform.com/api/v1', surveyId: 'your-survey-id'),
);
// Drop the batteries-included screen into your widget tree:
SurveyScreen(sdk: sdk, onComplete: (res) => debugPrint('done'));iOS (Swift)
ClaformSDK
Pure Swift SDK with SwiftUI views and UIKit bridge. ObservableObject view model, Dynamic Type support, and iOS 15+ compatibility.
Install
.package(url: "https://github.com/claform/sdk-ios.git", from: "1.0.0")import SwiftUI
import ClaformSDK
struct ContentView: View {
var body: some View {
SurveyView(
config: SurveyConfig(apiUrl: "https://api.claform.com/api/v1", surveyId: "your-survey-id")
) { result in
print("done", result)
}
}
}Android (Kotlin)
com.claform.sdk:survey-sdk
Pure Kotlin SDK with Jetpack Compose composables and Activity bridge. Material3 theming, StateFlow, and Android API 24+ support.
Install
implementation("com.claform.sdk:survey-sdk:1.0.0")import com.claform.sdk.ui.SurveyScreen
import com.claform.sdk.SurveyConfig
setContent {
SurveyScreen(
config = SurveyConfig(apiUrl = "https://api.claform.com/api/v1", surveyId = "your-survey-id"),
onComplete = { result -> Log.d("Claform", "done") }
)
}Advanced Capabilities
Production-Ready Out of the Box
Every SDK includes enterprise-grade features for offline, security, performance, and localization.
Offline Mode
Complete surveys without connectivity. Responses queue locally and sync automatically when back online.
Biometric Auth
Gate sensitive surveys behind Face ID, Touch ID, or fingerprint authentication on supported devices.
Encrypted Storage
AES-256-GCM encryption for all locally stored survey data and responses with migration-safe fallback.
Background Sync
Automatic background synchronization with conflict resolution and retry logic.
6 Languages
Built-in i18n with RTL support for Arabic, Hebrew, and Farsi. Runtime language switching.
Analytics
Built-in event tracking and analytics adapter. Monitor survey performance directly from your app.
35+ Question Types
Every question type supported with native UI components optimized for each platform.
Performance
100-question survey loads in 4ms. Page navigation in 0.15ms. Benchmarked and optimized.
Platform Comparison
| Feature | Core | React Native | Flutter | iOS | Android |
|---|---|---|---|---|---|
| 35+ Question Types | |||||
| Offline Support | |||||
| Biometric Auth | — | ||||
| Native UI | — | ||||
| Encrypted Storage | |||||
| Background Sync | |||||
| i18n (6 languages) | |||||
| Theme Engine | |||||
| Analytics Events | |||||
| A/B Testing |
Add Surveys to Your App Today
Get started with a few lines of code. All SDKs are free and open-source.