Skip to content

Commit 2e279c7

Browse files
nhducitKureev
authored andcommitted
use ViewPropTypes.style instead of View.props.style (#229)
closes #230
1 parent bbc91d9 commit 2e279c7

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

index.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import {
44
Text,
55
View,
66
Platform,
7+
ViewPropTypes,
78
} from 'react-native';
89
import PropTypes from 'prop-types'
910

@@ -12,7 +13,7 @@ import styles from './styles';
1213

1314
const ButtonShape = {
1415
title: PropTypes.string.isRequired,
15-
style: View.propTypes.style,
16+
style: ViewPropTypes.style,
1617
handler: PropTypes.func,
1718
disabled: PropTypes.bool,
1819
};
@@ -83,7 +84,7 @@ export default class NavigationBar extends Component {
8384
PropTypes.element,
8485
PropTypes.oneOf([null]),
8586
]),
86-
containerStyle: View.propTypes.style,
87+
containerStyle: ViewPropTypes.style,
8788
};
8889

8990
static defaultProps = {

0 commit comments

Comments
 (0)