From f5c6311c997d3c945aedb1376f1ed265e60acbbf Mon Sep 17 00:00:00 2001 From: Mohammad Ali Ghaderi Date: Tue, 2 Mar 2021 08:56:09 -0600 Subject: [PATCH] fix ViewPropType compile issue #50 --- src/components/grid/index.js | 4 ++-- src/components/section/index.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) 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, };