Gathering detailed insights and metrics for @s20.ai/capture-sdk
Gathering detailed insights and metrics for @s20.ai/capture-sdk
Gathering detailed insights and metrics for @s20.ai/capture-sdk
Gathering detailed insights and metrics for @s20.ai/capture-sdk
npm install @s20.ai/capture-sdk
Typescript
Module System
Node Version
NPM Version
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
34
25
This is the npm package for S20.AI's capture-sdk
For Proper Installation of the SDK, make sure following steps are followed:
npm i react-native-camera react-native-vision-camera
(look into setup for both packages on their respective npmjs pages)
npm install @s20.ai/capture-sdk @react-native-camera-roll/camera-roll @react-native-community/slider react-native-fs react-native-orientation-locker react-native-vector-icons react-native-video deprecated-react-native-prop-types uuid react-native-get-random-values react-native-digest-fetch react-native-blob-util react-native-canvas react-native-webview react-native-fs @react-native-async-storage/async-storage react-native-vector-icons @s20.ai/safecam-360-rn-lite react-native-drop-shadow react-native-haptic-feedback @react-native-community/blur react-native-linear-gradient react-native-snap-carousel --legacy-peer-deps
(additional setup is required for react-native-vector-icons, react-native-orientation-locker, react-native-fs)
delete the node_modules directory created for @s20.ai/capture-sdk
(optional) if your app does not use redux, you need to install react-redux npm i react-redux
1import SafecamCapture from "@s20.ai/capture-sdk"; 2 3const MySafecamCapture = () => { 4 return ( 5 <View style={{ flex: 1 }}> 6 <SafecamCapture productID={productID} sop={SOP_Config} /> 7 </View> 8 ); 9}; 10export default MySafecamCapture;
The sdk can add dynamic slots to the given SOP, for the process to work a few steps need to be done.
NOTE
1import SafecamCapture, { SafecamCaptureRef } from "@s20.ai/capture-sdk"; 2 3const MySafecamCapture = () => { 4 const ref = useRef < SafecamCaptureRef > null; 5 6 useEffect(() => { 7 setTimeout(() => { 8 ref.current?.addDynamic([ 9 { 10 refKey: "exterior-360-spin", 11 postprocessingServices: [ 12 { 13 service_id: "hotspot_tracking", 14 }, 15 ], 16 action: { 17 captureType: "Image", 18 title: "exterior-imperfection-1", 19 sourceType: "DeviceCamera", 20 }, 21 slotType: "IMPERFECTION", 22 title: "windshield wiper broken", 23 }, 24 ]); 25 }, 10000); 26 }, []); 27 28 return ( 29 <View style={{ flex: 1 }}> 30 <SafecamCapture productID={productID} sop={SOP_Config} ref={ref} /> 31 </View> 32 ); 33}; 34export default MySafecamCapture;
Written by [Gaurav Singh] at S20.ai
No vulnerabilities found.
No security vulnerabilities found.