When checking referrer on Android, we would like to do it at most once per installation. To achieve that we can set a value in AsyncStorage and run the effect only if the value is not set.
Depends on D7743
Differential D7751
[native] Introduce a hook that allows running an effect just once per installation tomek on May 9 2023, 2:53 AM. Authored by Tags None Referenced Files
Details When checking referrer on Android, we would like to do it at most once per installation. To achieve that we can set a value in AsyncStorage and run the effect only if the value is not set. Depends on D7743 Tested in combination with the next diff. Install the app using the referrer on Android, open the app and cancel invitation, close and open the app - the invitation shouldn't appear again.
Diff Detail
Event Timeline
Comment Actions Thanks, this is much safer!
|