mirror of
https://github.com/zhigang1992/react-native-super-grid.git
synced 2026-01-12 22:50:58 +08:00
replace view.propTypes to ViewPropTypes for 0.49+
This commit is contained in:
4
index.js
4
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
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user