File tree 2 files changed +9
-12
lines changed
2 files changed +9
-12
lines changed Original file line number Diff line number Diff line change @@ -16,7 +16,6 @@ const NativeModules = require('NativeModules');
16
16
const Platform = require ( 'Platform' ) ;
17
17
18
18
import type { AlertType , AlertButtonStyle } from 'AlertIOS' ;
19
- import type { Fbt } from 'fbt' ;
20
19
21
20
export type Buttons = Array < {
22
21
text ?: string ,
@@ -80,8 +79,8 @@ type Options = {
80
79
class Alert {
81
80
82
81
static alert (
83
- title : ?string | ? Fbt ,
84
- message ?: ?string | ? Fbt ,
82
+ title : ?string ,
83
+ message ?: ?string ,
85
84
buttons ?: Buttons ,
86
85
options ?: Options ,
87
86
type ?: AlertType ,
@@ -105,8 +104,8 @@ class Alert {
105
104
class AlertAndroid {
106
105
107
106
static alert (
108
- title : ?string | ? Fbt ,
109
- message ?: ?string | ? Fbt ,
107
+ title : ?string ,
108
+ message ?: ?string ,
110
109
buttons ?: Buttons ,
111
110
options ?: Options ,
112
111
) : void {
Original file line number Diff line number Diff line change 12
12
*/
13
13
'use strict' ;
14
14
15
- const RCTAlertManager = require ( 'NativeModules' ) . AlertManager ;
16
-
17
- import type { Fbt } from 'fbt' ;
15
+ var RCTAlertManager = require ( 'NativeModules' ) . AlertManager ;
18
16
19
17
/**
20
18
* An Alert button type
@@ -135,8 +133,8 @@ class AlertIOS {
135
133
* );
136
134
*/
137
135
static alert (
138
- title : ?string | ? Fbt ,
139
- message ?: ?string | ? Fbt ,
136
+ title : ?string ,
137
+ message ?: ?string ,
140
138
callbackOrButtons ?: ?( ( ) => void ) | ButtonsArray ,
141
139
type ?: AlertType ,
142
140
) : void {
@@ -194,8 +192,8 @@ class AlertIOS {
194
192
* );
195
193
*/
196
194
static prompt (
197
- title : ?string | ? Fbt ,
198
- message ?: ?string | ? Fbt ,
195
+ title : ?string ,
196
+ message ?: ?string ,
199
197
callbackOrButtons ?: ?( ( text : string ) => void ) | ButtonsArray ,
200
198
type ?: ?AlertType = 'plain-text' ,
201
199
defaultValue ?: string ,
You can’t perform that action at this time.
0 commit comments