Skip to content

Commit 148549f

Browse files
authored
Merge pull request #593 from BranchMetrics/SDK-1050/unsubscribe
[SDK-1050] Return an appropriate function for unsubscribe.
2 parents c2326f9 + c0f18f3 commit 148549f

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

native-tests/ios/Podfile.lock

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ PODS:
184184
- React-cxxreact (= 0.62.0)
185185
- React-jsi (= 0.62.0)
186186
- React-jsinspector (0.62.0)
187-
- react-native-branch (5.0.0-beta.2):
187+
- react-native-branch (5.0.0-rc.1):
188188
- Branch (= 0.34.0)
189189
- React
190190
- React-RCTActionSheet (0.62.0):
@@ -377,7 +377,7 @@ SPEC CHECKSUMS:
377377
React-jsi: bc8166d6833cdcb0848c80710b26ce63fad2c099
378378
React-jsiexecutor: 8bf0b2707f05865113415088c398a7f98c0cf546
379379
React-jsinspector: 8e5913c4c6c54f0d3f9c9fc630c465a89cded65d
380-
react-native-branch: c3f12fbc43ea98a9e8732cec78dfa83d525b7caf
380+
react-native-branch: 102e3783f839366246b6f7ace5cbfdae954f1257
381381
React-RCTActionSheet: 674afbc8b9c76e0a83520e0a51da29a70802c03f
382382
React-RCTAnimation: f5f24330d09ee677fb49e0782f8321868f4df431
383383
React-RCTBlob: b773ce6138ab0d172ebd8a455fd4efd200a92549

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-native-branch",
3-
"version": "5.0.0-beta.2",
3+
"version": "5.0.0-rc.1",
44
"description": "Branch Metrics React Native SDK",
55
"main": "src/index.js",
66
"files": [

src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ class Branch {
4444
const subscriber = new BranchSubscriber(options)
4545
subscriber.subscribe()
4646

47-
return subscriber.unsubscribe
47+
return () => subscriber.unsubscribe()
4848
}
4949

5050
skipCachedEvents() {

0 commit comments

Comments
 (0)