From 54f0ac1bbef4f1dc30e676cb87ed796e5e1aaaa3 Mon Sep 17 00:00:00 2001 From: Wouter De Schuyter Date: Mon, 2 Sep 2019 10:13:41 +0200 Subject: [PATCH] :bug: Fix prompt on ios --- index.ios.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.ios.js b/index.ios.js index b68126a..4f9d72d 100644 --- a/index.ios.js +++ b/index.ios.js @@ -1,5 +1,5 @@ import { - AlertIOS + Alert } from 'react-native'; export default function prompt( @@ -8,5 +8,5 @@ export default function prompt( callbackOrButtons?: ?((text: string) => void) | Object, options?: Object ): void { - AlertIOS.prompt(title, message, callbackOrButtons, options.type, options.defaultValue, options.keyboardType); + Alert.prompt(title, message, callbackOrButtons, options.type, options.defaultValue, options.keyboardType); };