From 3fc28164cb712ab109a359adfc43a4510733cf73 Mon Sep 17 00:00:00 2001 From: nsingh-branch Date: Tue, 26 Mar 2024 17:01:45 -0700 Subject: [PATCH] Add sample code to testbed --- branchreactnativetestbed/components/BranchWrapper.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/branchreactnativetestbed/components/BranchWrapper.ts b/branchreactnativetestbed/components/BranchWrapper.ts index c290ee0f5..ee86fe693 100644 --- a/branchreactnativetestbed/components/BranchWrapper.ts +++ b/branchreactnativetestbed/components/BranchWrapper.ts @@ -11,7 +11,8 @@ export default class BranchWrapper { componentDidMount() { console.log('BranchWrapper componentDidMount'); - + branch.setAPIUrl('https://api3.branch.io'); + this._unsubscribeFromBranch = branch.subscribe({ onOpenStart: ({uri, cachedInitialEvent}) => { console.log(