@@ -19,6 +19,13 @@ external alert: (
|
19 | 19 | unit, |
20 | 20 | ) => unit = "alert" |
21 | 21 | |
| 22 | +type type_ = [ |
| 23 | + | #default |
| 24 | + | #"plain-text" |
| 25 | + | #"secure-text" |
| 26 | + | #"login-password" |
| 27 | +] |
| 28 | + |
22 | 29 | @scope("Alert") @module("react-native") |
23 | 30 | external prompt: ( |
24 | 31 | ~title: string, |
@@ -28,13 +35,7 @@ external prompt: (
|
28 | 35 | | #callback(string => unit) |
29 | 36 | | #buttons(array<button>) |
30 | 37 | ]=?, |
31 | | - ~type_: @string |
32 | | - [ |
33 | | - | #default |
34 | | - | @as("plain-text") #plainText |
35 | | - | @as("secure-text") #secureText |
36 | | - | @as("login-password") #loginPassword |
37 | | - ]=?, |
| 38 | + ~type_: type_=?, |
38 | 39 | ~defaultValue: string=?, |
39 | 40 | ~keyboardType: string=?, |
40 | 41 | unit, |
|