kevinstumpf / react-native-branch

Native Wrapper around Branch Metrics native SDKs
MIT License
20 stars 12 forks source link

implement listen method #8

Closed rt2zz closed 8 years ago

rt2zz commented 8 years ago

This solves what I consider to be the main use case for branch, listening for incoming links.

the api works as follows:

branch.listen((params) => {
  // will be called anytime there in an inbound link.
})

I added a basic "isNewResult" method because on android I was getting 3 duplicate events for every single inbound link.