react-native-branch-deep-linking-attribution
react-native-branch-deep-linking-attribution copied to clipboard
~creation_source type should be number
I noticed the typing for ~creation_source
is wrong. It should be number instead of string. This can be verified easily by creating a deeplink from API.. Putting this into branch.subscribe
and console logging event.params
will tell you that ~creation_source
is a number. You can also do a check like this and confirm that check returns false.
event.params[~creation_source] === '0' // false
Also by the document, these are numbers.
Where the link was created (0 API , 1 Quick Link, 2 SDK, 3 iOS SDK , 4 Android SDK , 5 Web SDK, 6 Dynamic, 7 Third party)
Let me know if you want me to submit a PR to fix this.
That'd be super helpful @vincent-paing . Our team will test/review it this week once published.
Thanks!