From 100aeb13a761c4476a3dec3c0e52fd7aaf9fedcf Mon Sep 17 00:00:00 2001 From: Alyreza Date: Wed, 24 Jul 2019 15:18:50 +0430 Subject: [PATCH] AlertIOS is now replaced with Alert --- index.ios.js | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/index.ios.js b/index.ios.js index b68126a..589f00f 100644 --- a/index.ios.js +++ b/index.ios.js @@ -1,6 +1,4 @@ -import { - AlertIOS -} from 'react-native'; +import { Alert } from "react-native"; export default function prompt( title: ?string, @@ -8,5 +6,12 @@ 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 + ); +}