-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #536 from cnguyen812/feat/pass-appsflyerid-to-bitpay
Feat/pass appsflyerid to bitpay
- Loading branch information
Showing
5 changed files
with
94 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import AppsFlyer from 'react-native-appsflyer'; | ||
|
||
/** | ||
* Promisifies the AppsFlyer SDK getAppsFlyerUID method. | ||
* | ||
* @returns AppsFlyer ID | ||
*/ | ||
export const getAppsFlyerId = () => { | ||
return new Promise<string | undefined>(resolve => | ||
AppsFlyer.getAppsFlyerUID((err, id) => { | ||
resolve(err ? undefined : id); | ||
}), | ||
); | ||
}; |