diff --git a/src/components/grid/index.js b/src/components/grid/index.js index 6c0d406..62bf14a 100644 --- a/src/components/grid/index.js +++ b/src/components/grid/index.js @@ -1,6 +1,6 @@ import React, { Component } from 'react'; import PropTypes from 'prop-types'; -import { Dimensions, StyleSheet, View, ViewPropTypes } from 'react-native'; +import { Dimensions, StyleSheet, View } from 'react-native'; import { BREAKPOINT_VALUES, @@ -213,7 +213,7 @@ Grid.propTypes = { horizontal: PropTypes.bool, scrollable: PropTypes.bool, relativeTo: PropTypes.oneOf(['parent', 'self', 'window']), - style: ViewPropTypes.style, + style: PropTypes.object, stretchable: PropTypes.bool, children: PropTypes.oneOfType([ diff --git a/src/components/section/index.js b/src/components/section/index.js index db94071..72e0a2e 100644 --- a/src/components/section/index.js +++ b/src/components/section/index.js @@ -1,6 +1,6 @@ import React from 'react'; import PropTypes from 'prop-types'; -import { StyleSheet, View, ViewPropTypes } from 'react-native'; +import { StyleSheet, View } from 'react-native'; import { DirectionProp } from '../../shared/props'; import { checkInsideGrid, warn } from '../../utils'; @@ -61,7 +61,7 @@ Section.propTypes = { PropTypes.arrayOf(PropTypes.node), PropTypes.node, ]).isRequired, - style: ViewPropTypes.style, + style: PropTypes.object, stretch: PropTypes.bool, };