Skip to content

Commit

Permalink
add comment about license
Browse files Browse the repository at this point in the history
  • Loading branch information
xulihang committed Jan 31, 2024
1 parent d4ff2df commit 11785ad
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion example/src/screens/Scanner.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,8 @@ export default function ScannerScreen({route}) {
console.log("mounted");
const status = await Camera.requestCameraPermission();
setHasPermission(status === 'granted');
const result = await DLR.initLicense("DLS2eyJoYW5kc2hha2VDb2RlIjoiMjAwMDAxLTE2NDk4Mjk3OTI2MzUiLCJvcmdhbml6YXRpb25JRCI6IjIwMDAwMSIsInNlc3Npb25QYXNzd29yZCI6IndTcGR6Vm05WDJrcEQ5YUoifQ==");
let license = "DLS2eyJoYW5kc2hha2VDb2RlIjoiMjAwMDAxLTE2NDk4Mjk3OTI2MzUiLCJvcmdhbml6YXRpb25JRCI6IjIwMDAwMSIsInNlc3Npb25QYXNzd29yZCI6IndTcGR6Vm05WDJrcEQ5YUoifQ=="; //one-day public trial
const result = await DLR.initLicense(license);
if (result === false) {
Alert.alert("Error","License invalid");
}
Expand Down

0 comments on commit 11785ad

Please sign in to comment.