diff --git a/Libraries/Alert/Alert.js b/Libraries/Alert/Alert.js index 6598175c0825d3..40666f70e35076 100644 --- a/Libraries/Alert/Alert.js +++ b/Libraries/Alert/Alert.js @@ -16,7 +16,6 @@ const NativeModules = require('NativeModules'); const Platform = require('Platform'); import type { AlertType, AlertButtonStyle } from 'AlertIOS'; -import type { Fbt } from 'fbt'; export type Buttons = Array<{ text?: string, @@ -80,8 +79,8 @@ type Options = { class Alert { static alert( - title: ?string | ?Fbt, - message?: ?string | ?Fbt, + title: ?string, + message?: ?string, buttons?: Buttons, options?: Options, type?: AlertType, @@ -105,8 +104,8 @@ class Alert { class AlertAndroid { static alert( - title: ?string | ?Fbt, - message?: ?string | ?Fbt, + title: ?string, + message?: ?string, buttons?: Buttons, options?: Options, ): void { diff --git a/Libraries/Alert/AlertIOS.js b/Libraries/Alert/AlertIOS.js index 933df8512a3b95..375a4db56c96a2 100644 --- a/Libraries/Alert/AlertIOS.js +++ b/Libraries/Alert/AlertIOS.js @@ -12,9 +12,7 @@ */ 'use strict'; -const RCTAlertManager = require('NativeModules').AlertManager; - -import type { Fbt } from 'fbt'; +var RCTAlertManager = require('NativeModules').AlertManager; /** * An Alert button type @@ -135,8 +133,8 @@ class AlertIOS { * ); */ static alert( - title: ?string | ?Fbt, - message?: ?string | ?Fbt, + title: ?string, + message?: ?string, callbackOrButtons?: ?(() => void) | ButtonsArray, type?: AlertType, ): void { @@ -194,8 +192,8 @@ class AlertIOS { * ); */ static prompt( - title: ?string | ?Fbt, - message?: ?string | ?Fbt, + title: ?string, + message?: ?string, callbackOrButtons?: ?((text: string) => void) | ButtonsArray, type?: ?AlertType = 'plain-text', defaultValue?: string,