From 6d345c76c0cea9cfdfd4f9309bc1c3b842da2dcd Mon Sep 17 00:00:00 2001 From: rob-gioia-branch Date: Tue, 8 Oct 2024 10:26:03 -0400 Subject: [PATCH] Displays an alert with the Branch React Native SDK version Displays an alert with the Branch React Native SDK version --- branchreactnativetestbed/components/BranchWrapper.ts | 2 ++ branchreactnativetestbed/components/IntegrationValidator.js | 6 ++++++ 2 files changed, 8 insertions(+) diff --git a/branchreactnativetestbed/components/BranchWrapper.ts b/branchreactnativetestbed/components/BranchWrapper.ts index 04049d8cc..c1b814bfc 100644 --- a/branchreactnativetestbed/components/BranchWrapper.ts +++ b/branchreactnativetestbed/components/BranchWrapper.ts @@ -192,6 +192,8 @@ export default class BranchWrapper { await branch.readLogs().then( val => { console.log(val); }); + + IntegrationValidator.showBranchSDKVersionMessage(); }; viewFirstReferringParams = async () => { diff --git a/branchreactnativetestbed/components/IntegrationValidator.js b/branchreactnativetestbed/components/IntegrationValidator.js index 10785073d..acf3732d0 100644 --- a/branchreactnativetestbed/components/IntegrationValidator.js +++ b/branchreactnativetestbed/components/IntegrationValidator.js @@ -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 => {