Skip to content

Commit 29af37e

Browse files
committed
Release 1.2.0
1 parent 866cc7e commit 29af37e

File tree

2 files changed

+37
-39
lines changed

2 files changed

+37
-39
lines changed

README.md

Lines changed: 36 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -63,25 +63,24 @@ import { Dialog } from 'react-native-simple-dialogs';
6363

6464
#### Available props
6565

66-
| Name | Type | Default | Description |
67-
| --------------------------- | --------------------------------------------------------------------------------------------------- | ---------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
68-
| visible | Boolean | false | Show the modal? |
69-
| onRequestClose | Function | null | Callback that's called when users taps the hardware back button on Android |
70-
| animationType | Enum('none', 'slide', 'fade') | 'none' | Controls how the modal animates |
71-
| onShow | Function | null | Callback that's called once the modal has been shown |
72-
| onOrientationChange | Function | null | Callback that's called when the orientation change while the modal is being displayed on iOS |
73-
| supportedOrientations | Array of Enum('portrait', 'portrait-upside-down', 'landscape', 'landscape-left', 'landscape-right') | 'portrait' | Allowed orientation while modals is being shown. More info at [react-native docs](https://facebook.github.io/react-native/docs/modal#supportedorientations) |
74-
| onTouchOutside | Function | null | Callbac that's called when users tap outside the shown modal |
75-
| title | String | null | Modal's title |
76-
| titleStyle | [Text StyleSheet](https://facebook.github.io/react-native/docs/text-style-props) | null | Custom text style object for modal's title |
77-
| dialogStyle | [View StyleSheet](https://facebook.github.io/react-native/docs/view-style-props) | null | Custom view style for dialog box |
78-
| contentStyle | [View StyleSheet](https://facebook.github.io/react-native/docs/view-style-props) | null | Custom view style for dialog content wrapper |
79-
| buttonsStyle | [View StyleSheet](https://facebook.github.io/react-native/docs/view-style-props) | null | Custom view style for dialog button wrapper |
80-
| overlayStyle | [View StyleSheet](https://facebook.github.io/react-native/docs/view-style-props) | null | Custom view style for dialog overlay |
81-
| buttons | React Component | null | Modal button component |
82-
| keyboardDismissMode | Enum('none', 'on-drag', 'interactive') | null | Determines whether the keyboard gets dismissed in response to a drag. More info at [react-native docs](https://facebook.github.io/react-native/docs/scrollview#keyboarddismissmode) |
83-
| keyboardShouldPersistTaps | Enum('always', 'never', 'handled', false, true) | null | Determines when the keyboard should stay visible after a tap. More info at [react-native docs](https://facebook.github.io/react-native/docs/scrollview#keyboardshouldpersisttaps) |
84-
66+
| Name | Type | Default | Description |
67+
| --------------------------- | --------------------------------------------------------------------------------------------------- | ---------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------- |
68+
| visible | Boolean | false | Show the modal? |
69+
| onRequestClose | Function | null | Callback that's called when users taps the hardware back button on Android |
70+
| animationType | Enum('none', 'slide', 'fade') | 'none' | Controls how the modal animates |
71+
| onShow | Function | null | Callback that's called once the modal has been shown |
72+
| onOrientationChange | Function | null | Callback that's called when the orientation change while the modal is being displayed on iOS |
73+
| supportedOrientations | Array of Enum('portrait', 'portrait-upside-down', 'landscape', 'landscape-left', 'landscape-right') | 'portrait' | Allowed orientation while modals is being shown. More info at [react-native docs](https://facebook.github.io/react-native/docs/modal#supportedorientations) |
74+
| onTouchOutside | Function | null | Callbac that's called when users tap outside the shown modal |
75+
| title | String | null | Modal's title |
76+
| titleStyle | [Text StyleSheet](https://facebook.github.io/react-native/docs/text-style-props) | null | Custom text style object for modal's title |
77+
| dialogStyle | [View StyleSheet](https://facebook.github.io/react-native/docs/view-style-props) | null | Custom view style for dialog box |
78+
| contentStyle | [View StyleSheet](https://facebook.github.io/react-native/docs/view-style-props) | null | Custom view style for dialog content wrapper |
79+
| buttonsStyle | [View StyleSheet](https://facebook.github.io/react-native/docs/view-style-props) | null | Custom view style for dialog button wrapper |
80+
| overlayStyle | [View StyleSheet](https://facebook.github.io/react-native/docs/view-style-props) | null | Custom view style for dialog overlay |
81+
| buttons | React Component | null | Modal button component |
82+
| keyboardDismissMode | Enum('none', 'on-drag', 'interactive') | null | [Determines whether the keyboard gets dismissed in response to a drag.](https://facebook.github.io/react-native/docs/scrollview#keyboarddismissmode) |
83+
| keyboardShouldPersistTaps | Enum('always', 'never', 'handled', false, true) | null | [Determines when the keyboard should stay visible after a tap.](https://facebook.github.io/react-native/docs/scrollview#keyboardshouldpersisttaps) |
8584

8685
### Confirm Dialog
8786

@@ -121,25 +120,24 @@ import { ConfirmDialog } from 'react-native-simple-dialogs';
121120

122121
#### Available props
123122

124-
| Name | Type | Default | Description |
125-
| ----------------- | ---------------- | ------------ | --------------------------------------------------------------------------------------------- |
126-
| ...{Dialog.props} | Dialog Props | null | Same props as Dialog Component |
127-
| message | String | null | Message shown in the confirm dialog |
123+
| Name | Type | Default | Description |
124+
| ----------------- | -------------------------------------------------------------------------------- | ------------ | --------------------------------------------------------------------------------------------- |
125+
| ...{Dialog.props} | Dialog Props | null | Same props as Dialog Component |
126+
| message | String | null | Message shown in the confirm dialog |
128127
| messageStyle | [Text StyleSheet](https://facebook.github.io/react-native/docs/text-style-props) | null | Custom text style for message |
129-
| negativeButton | Button Props | null | Button element object to describe the negative button. See below for detailed shape of button |
130-
| positiveButton | Button Props | **REQUIRED** | Button element object to describe the positive button. See below for detailed shape of button |
128+
| negativeButton | Button Props | null | Button element object to describe the negative button. See below for detailed shape of button |
129+
| positiveButton | Button Props | **REQUIRED** | Button element object to describe the positive button. See below for detailed shape of button |
131130

132131
##### Button props
133132

134-
| Name | Type | Default |
135-
| ---------- | ---------------- | ------------ |
136-
| title | String | **REQUIRED** |
137-
| onPress | Function | **REQUIRED** |
138-
| disabled | Boolean | null |
133+
| Name | Type | Default |
134+
| ---------- | -------------------------------------------------------------------------------- | ------------ |
135+
| title | String | **REQUIRED** |
136+
| onPress | Function | **REQUIRED** |
137+
| disabled | Boolean | null |
139138
| titleStyle | [Text StyleSheet](https://facebook.github.io/react-native/docs/text-style-props) | null |
140139
| style | [View StyleSheet](https://facebook.github.io/react-native/docs/view-style-props) | null |
141140

142-
143141
### Progress Dialog
144142

145143
```jsx
@@ -154,13 +152,13 @@ import { ProgressDialog } from 'react-native-simple-dialogs';
154152

155153
#### Available props
156154

157-
| Name | Type | Default | Description |
158-
| ---------------------- | ------------------------------ | ------------ | ------------------------------------------------------- |
159-
| ...{Dialog.props} | Dialog Props | null | Same props as Dialog Component |
160-
| message | String | **REQUIRED** | Message shown in the progress dialog |
161-
| messageStyle | [Text StyleSheet](https://facebook.github.io/react-native/docs/text-style-props) | null | Custom text style for message |
162-
| activityIndicatorColor | color | 'gray' | The foreground color of the spinner |
163-
| activityIndicatorSize | enum('small', 'large'), number | 'small' | Size of the indicator. Number only supported on Android |
155+
| Name | Type | Default | Description |
156+
| ---------------------- | -------------------------------------------------------------------------------- | ------------ | ------------------------------------------------------- |
157+
| ...{Dialog.props} | Dialog Props | null | Same props as Dialog Component |
158+
| message | String | **REQUIRED** | Message shown in the progress dialog |
159+
| messageStyle | [Text StyleSheet](https://facebook.github.io/react-native/docs/text-style-props) | null | Custom text style for message |
160+
| activityIndicatorColor | color | 'gray' | The foreground color of the spinner |
161+
| activityIndicatorSize | enum('small', 'large'), number | 'small' | Size of the indicator. Number only supported on Android |
164162
| activityIndicatorStyle | [View StyleSheet](https://facebook.github.io/react-native/docs/view-style-props) | null | Custom style for the activity indicator |
165163

166164
More info on the [sample project](https://github.com/douglasjunior/react-native-simple-dialogs/blob/master/Sample/src/App.js).

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-native-simple-dialogs",
3-
"version": "1.1.0",
3+
"version": "1.2.0",
44
"description": "Cross-platform simple dialogs for React Native based on the Modal component. ⚛",
55
"private": false,
66
"repository": {

0 commit comments

Comments
 (0)