Skip to content

Commit

Permalink
fix ViewPropType compile issue axilis#50
Browse files Browse the repository at this point in the history
  • Loading branch information
mohghaderi committed Feb 24, 2021
1 parent 473c28a commit a1aaa5e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/components/grid/index.js
Original file line number Diff line number Diff line change
@@ -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,
Expand Down Expand Up @@ -213,7 +213,7 @@ Grid.propTypes = {
horizontal: PropTypes.bool,
scrollable: PropTypes.bool,
relativeTo: PropTypes.oneOf(['parent', 'self', 'window']),
style: ViewPropTypes.style,
style: PropTypes.any,
stretchable: PropTypes.bool,

children: PropTypes.oneOfType([
Expand Down
4 changes: 2 additions & 2 deletions src/components/section/index.js
Original file line number Diff line number Diff line change
@@ -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';
Expand Down Expand Up @@ -61,7 +61,7 @@ Section.propTypes = {
PropTypes.arrayOf(PropTypes.node),
PropTypes.node,
]).isRequired,
style: ViewPropTypes.style,
style: ViewPropTypes.any,
stretch: PropTypes.bool,
};

Expand Down

0 comments on commit a1aaa5e

Please sign in to comment.