From 8d0f17de266659ec553b4e1a34aafb6d416c0370 Mon Sep 17 00:00:00 2001 From: Tomas Roos Date: Tue, 30 Oct 2018 10:09:38 +0100 Subject: [PATCH] Cleaned up IDFA, added flowtypes --- IDFA.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/IDFA.js b/IDFA.js index 6061df7..a925f13 100644 --- a/IDFA.js +++ b/IDFA.js @@ -1,12 +1,13 @@ +// @flow + import { NativeModules } from 'react-native'; const { PTRIDFA } = NativeModules; class IDFA { - getIDFA() { + getIDFA(): Promise { return PTRIDFA.getIDFA(); } } -IDFAInstance = new IDFA(); -export default IDFAInstance; +export default new IDFA();