Skip to content

Commit dbda044

Browse files
committed
Fixing proptypes warning.
1 parent 5eeb3f2 commit dbda044

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

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": "0.3.0",
3+
"version": "0.3.1",
44
"description": "Cross-platform simple dialogs for React Native based on the Modal component. ⚛",
55
"private": false,
66
"repository": {

src/ConfirmDialog.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -170,14 +170,14 @@ const buttonPropType = PropTypes.shape({
170170
title: PropTypes.string.isRequired,
171171
onPress: PropTypes.func.isRequired,
172172
disabled: PropTypes.bool,
173-
titleStyle: {
173+
titleStyle: PropTypes.shape({
174174
...Text.propTypes.style,
175175
colorDisabled: PropTypes.string,
176-
},
177-
style: {
176+
}),
177+
style: PropTypes.shape({
178178
...ViewPropTypes.style,
179179
backgroundColorDisabled: PropTypes.string,
180-
}
180+
})
181181
});
182182

183183
ConfirmDialog.propTypes = {

0 commit comments

Comments
 (0)