From d2c808824069a939c6e03400a1db245376148abb Mon Sep 17 00:00:00 2001 From: caudaganesh Date: Thu, 2 Nov 2017 19:59:42 +0700 Subject: [PATCH] replace view.propTypes to ViewPropTypes for 0.49+ --- index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index ce9e857..9e884dc 100644 --- a/index.js +++ b/index.js @@ -1,6 +1,6 @@ import React, { Component } from 'react'; import PropTypes from 'prop-types'; -import { View, ListView, Dimensions } from 'react-native'; +import { View, ListView, Dimensions, ViewPropTypes } from 'react-native'; import { chunkArray } from './utils'; class SuperGrid extends Component { @@ -100,7 +100,7 @@ SuperGrid.propTypes = { itemWidth: PropTypes.number, fixed: PropTypes.bool, spacing: PropTypes.number, - style: View.propTypes.style, + style: ViewPropTypes.style, staticWidth: PropTypes.number };