Skip to content

Commit

Permalink
MOB-1206 #comment updated documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
shachartransmit committed Sep 19, 2024
1 parent 5f0553b commit f2a2dfe
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 11 deletions.
7 changes: 2 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -110,11 +110,8 @@ componentDidMount(): void {
}

private onAppReady = async (): Promise<void> => {
/* Initialize the module with parameters:
1. ClientID obtained from the application settings in the Transmit portal
2. Optional: Base URL. Defaults to TSIDV.BaseURL.us
*/
IdentityVerification.initialize(config.clientId, TSIDV.BaseURL.us);

await IdentityVerification.initializeSDK();

// Register to receive status updates
this.verificationStatusChangeSub = eventEmitter.addListener(
Expand Down
2 changes: 1 addition & 1 deletion android/src/main/java/com/tsidv/TsIdvModule.kt
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ class TsIdvModule(private val reactContext: ReactApplicationContext) : ReactCont
fun setLogLevel(jsLogLevel: String, promise: Promise) {
Log.d(TAG,"Identity Verification setLogLevel")
val isOff = jsLogLevel === "off"
TSLog.setLoggingEnabled(isOff)
TSLog.setLoggingEnabled(!isOff)
}

@ReactMethod
Expand Down
5 changes: 0 additions & 5 deletions android/src/main/res/values/strings.xml

This file was deleted.

2 changes: 2 additions & 0 deletions example/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,8 @@ export default class App extends React.Component<any, State> {
this.logAppEvent("Error: This code requires configuration of the App's Client ID and Secret. Please set the values in config.ts before proceeding.");
return;
}

IdentityVerification.setLogLevel(TSIDV.IDVLogLevel.verbose);

if (Platform.OS === "android") {
await IdentityVerification.initializeSDK();
Expand Down

0 comments on commit f2a2dfe

Please sign in to comment.