SDK Initialization
1- Initializing PensaSdk
import {initPensa} from 'pensa-sdk-react-native';
initPensa({
clientId: 'YOUR_CLIENT_ID',
clientSecret: 'YOUR_CLIENT_SECRET',
isLoggingEnabled: true,
})
.then(() => {
console.log('[Pensa] SDK init success');
})
.catch((error) => {
console.log('[Pensa] SDK init error:', error);
});2- Add Listeners (Optional)
Event Name
Payload Fields
Once initialized, you can use any of the SDK methods like showShelfScans, showStoresScreen, or showScanArea.
showShelfScans, showStoresScreen, or showScanArea.Last updated
Was this helpful?