Skip to content

Commit

Permalink
Cleaned up IDFA, added flowtypes
Browse files Browse the repository at this point in the history
  • Loading branch information
ptomasroos committed Oct 30, 2018
1 parent 6d43297 commit 8d0f17d
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions IDFA.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
// @flow

import { NativeModules } from 'react-native';

const { PTRIDFA } = NativeModules;

class IDFA {
getIDFA() {
getIDFA(): Promise<string> {
return PTRIDFA.getIDFA();
}
}

IDFAInstance = new IDFA();
export default IDFAInstance;
export default new IDFA();

0 comments on commit 8d0f17d

Please sign in to comment.