Function
showAlert
(title: string | undefined, message: string, buttons: AlertButton[], options: AlertOptions)
Source from the content-addressed store, hash-verified
| 23 | }; |
| 24 | |
| 25 | const showAlert = (title: string | undefined, message: string, buttons: AlertButton[], options: AlertOptions) => { |
| 26 | if (Platform.OS === 'ios' && navigationRef.isReady()) { |
| 27 | RNAlert.alert(title ?? message, title && message ? message : undefined, buttons, options); |
| 28 | } else { |
| 29 | RNAlert.alert(title ?? '', message, buttons, options); |
| 30 | } |
| 31 | }; |
| 32 | |
| 33 | return ({ |
| 34 | title, |
Tested by
no test coverage detected