Skip to content

Commit 7809381

Browse files
Jessica Caofacebook-github-bot
Jessica Cao
authored andcommitted
Backed out changeset eadb184eacdf
Reviewed By: fkgozali, hramos Differential Revision: D6287083 fbshipit-source-id: 43c6e43a9d5411e71f51824f9443559b4e0a47e2
1 parent a47431e commit 7809381

File tree

2 files changed

+9
-12
lines changed

2 files changed

+9
-12
lines changed

Libraries/Alert/Alert.js

+4-5
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ const NativeModules = require('NativeModules');
1616
const Platform = require('Platform');
1717

1818
import type { AlertType, AlertButtonStyle } from 'AlertIOS';
19-
import type { Fbt } from 'fbt';
2019

2120
export type Buttons = Array<{
2221
text?: string,
@@ -80,8 +79,8 @@ type Options = {
8079
class Alert {
8180

8281
static alert(
83-
title: ?string | ?Fbt,
84-
message?: ?string | ?Fbt,
82+
title: ?string,
83+
message?: ?string,
8584
buttons?: Buttons,
8685
options?: Options,
8786
type?: AlertType,
@@ -105,8 +104,8 @@ class Alert {
105104
class AlertAndroid {
106105

107106
static alert(
108-
title: ?string | ?Fbt,
109-
message?: ?string | ?Fbt,
107+
title: ?string,
108+
message?: ?string,
110109
buttons?: Buttons,
111110
options?: Options,
112111
): void {

Libraries/Alert/AlertIOS.js

+5-7
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,7 @@
1212
*/
1313
'use strict';
1414

15-
const RCTAlertManager = require('NativeModules').AlertManager;
16-
17-
import type { Fbt } from 'fbt';
15+
var RCTAlertManager = require('NativeModules').AlertManager;
1816

1917
/**
2018
* An Alert button type
@@ -135,8 +133,8 @@ class AlertIOS {
135133
* );
136134
*/
137135
static alert(
138-
title: ?string | ?Fbt,
139-
message?: ?string | ?Fbt,
136+
title: ?string,
137+
message?: ?string,
140138
callbackOrButtons?: ?(() => void) | ButtonsArray,
141139
type?: AlertType,
142140
): void {
@@ -194,8 +192,8 @@ class AlertIOS {
194192
* );
195193
*/
196194
static prompt(
197-
title: ?string | ?Fbt,
198-
message?: ?string | ?Fbt,
195+
title: ?string,
196+
message?: ?string,
199197
callbackOrButtons?: ?((text: string) => void) | ButtonsArray,
200198
type?: ?AlertType = 'plain-text',
201199
defaultValue?: string,

0 commit comments

Comments
 (0)