88 */
99'use strict' ;
1010
11- import React , { Component , PropTypes } from 'react' ;
11+ import React , { Component } from 'react' ;
12+ import PropTypes from 'prop-types' ;
1213import ReactDOM from 'react-dom' ;
1314import ListViewDataSource from 'ReactListViewDataSource' ;
1415import ScrollView from 'ReactScrollView' ;
@@ -159,12 +160,12 @@ class ListView extends Component {
159160 * A function that returns the scrollable component in which the list rows
160161 * are rendered. Defaults to returning a ScrollView with the given props.
161162 */
162- renderScrollComponent : React . PropTypes . func . isRequired ,
163+ renderScrollComponent : PropTypes . func . isRequired ,
163164 /**
164165 * How early to start rendering rows before they come on screen, in
165166 * pixels.
166167 */
167- scrollRenderAheadDistance : React . PropTypes . number ,
168+ scrollRenderAheadDistance : PropTypes . number ,
168169 /**
169170 * (visibleRows, changedRows) => void
170171 *
@@ -174,13 +175,13 @@ class ListView extends Component {
174175 * that have changed their visibility, with true indicating visible, and
175176 * false indicating the view has moved out of view.
176177 */
177- onChangeVisibleRows : React . PropTypes . func ,
178+ onChangeVisibleRows : PropTypes . func ,
178179 /**
179180 * A performance optimization for improving scroll perf of
180181 * large lists, used in conjunction with overflow: 'hidden' on the row
181182 * containers. This is enabled by default.
182183 */
183- removeClippedSubviews : React . PropTypes . bool ,
184+ removeClippedSubviews : PropTypes . bool ,
184185 /**
185186 * An array of child indices determining which children get docked to the
186187 * top of the screen when scrolling. For example, passing
0 commit comments