You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A pure JavaScript React-Native dialog that follows closely the UI of its native counterpart while expanding its features.
5
+
A flexible pure JavaScript React-Native dialog that follows closely the native UI guidelines.
6
6
7
7
## Features
8
8
9
9
- Support for iOS and Android (JavaScript API)
10
10
- A flexible declarative API
11
-
- Follows closely the UI of a native dialog/alert
11
+
- Follows closely the UI of native dialogs/alerts
12
12
- Can be used both as an alert and as an input prompt
13
13
- Can be injected with any component
14
+
- Supports light/dark mode
14
15
15
16
## Demo
16
17
@@ -228,7 +229,7 @@ return (
228
229
229
230
### How can I add a 'tap outside dialog' callback?
230
231
231
-
`react-native-dialog` uses [a thin abstraction on top of the React-Native's modal component](./src/Modal.js). Any properties you add to `Dialog.Container` are mapped through to the modal.
232
+
`react-native-dialog` uses [a thin abstraction on top of the React-Native's modal component](./src/Modal.tsx). Any properties you add to `Dialog.Container` are mapped through to the modal.
232
233
The modal has an `onBackdropPress` property that can be used to register clicks on the backdrop.
233
234
234
235
Below is an example of how you can close the dialog by tapping outside.
0 commit comments