Package to render saffe capture
npm install @go.saffe/go-saffe-react-native
import SaffeCapture from "@go.saffe/go-saffe-react-native";
// ...
<SaffeCapture
captureKey={} // capture key (sandbox or production)
user={} // user identifier (either email or CPF)
type={} // "onboarding" or "verification"
endToEndId={} // identifier to keep consistency between front and backend
onLoad={} // callback function called when component is loading
onError={} // callback function called to catch error from component
onClose={} // callback function called when end-user closes (cancels) the capture
onFinish={} // callback function called when end-user finishes (completes) the capture
onTimeout={} // callback function called when the capture ends for timeout
/>
See the contributing guide to learn how to contribute to the repository and the development workflow.
MIT