Skip to content

Commit

Permalink
Displays an alert with the Branch React Native SDK version
Browse files Browse the repository at this point in the history
Displays an alert with the Branch React Native SDK version
  • Loading branch information
rob-gioia-branch committed Oct 8, 2024
1 parent 09d029d commit 6d345c7
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions branchreactnativetestbed/components/BranchWrapper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,8 @@ export default class BranchWrapper {
await branch.readLogs().then( val => {
console.log(val);
});

IntegrationValidator.showBranchSDKVersionMessage();
};

viewFirstReferringParams = async () => {
Expand Down
6 changes: 6 additions & 0 deletions branchreactnativetestbed/components/IntegrationValidator.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,12 @@ export default class IntegrationValidator {
return sdkVersion
}

static showBranchSDKVersionMessage() {
var branchSDKVersion = 'Branch React Native SDK Version: ' + this.getBranchSDKVersion();
Alert.alert(branchSDKVersion);
console.log(branchSDKVersion);
}

static validate() {
let packageName = AndroidValidator.getPackageName()
AndroidValidator.getBranchKeys().then( keys => {
Expand Down

0 comments on commit 6d345c7

Please sign in to comment.