You have to implement natively both on iOS and Android. After that you can handle the event when your app is opened through a deep link: facebook.github.io/react-native/docs/linking.html
Have a look at branch.io
It can help you to avoid the implementation and testing of the corner cases and can manage marketing campaigns as well.