Run the sample app
Use a physical device — the guided capture flow needs a real camera. On iOS, open ios/
npm install
# iOS
cd ios && pod install && cd ..
npm start # Metro, leave running
npm run ios # or: npm run android
Bridge contract
Native module — NativeModules.Spyne
| Method | Arguments | Notes |
|---|---|---|
| start | userId, vin, stockNumber, registrationNumber, locale | Begins (or resumes) a shoot. userId + at least one identifier required; locale defaults to "en". |
| exitSDK | none | Programmatically dismiss the capture flow (iOS). |
Events — via NativeEventEmitter(NativeModules.Spyne)
| Event | Payload |
|---|---|
| onShootInitiated | shootData, dealerVinId, mediaId, status |
| onShootCompleted | shootData, dealerVinId, mediaId, isReshoot |
| onShootExit | shootData, dealerVinId, mediaId |
shootData = {vin, stockNumber, registrationNumber}.
Related pages
For deeper SDK features — resuming a shoot, tracking and managing uploads, customizing the shooting flow, and handling lifecycle callbacks — refer to the native documentation for the platform you are integrating:
- iOS → iOS SDK
- Android → Android SDK
- Sample project → spyne-react-native-sample on GitHub
Updated 1 day ago
Did this page help you?
