Open ghost opened 6 years ago
Having same error ! please help me
+1
The error happens because PropTypes in React 16 is deprecated. You should use the prop-types package from npm instead. Go to the Anim.js
, LazyloadImage.js
, LazyloadListView.js
, LazyloadScrollView.js
, LazyloadView.js
.
Change the import from
import React, { Component, PropTypes } from 'react';
to
import React, { Component } from 'react';
import PropTypes from 'prop-types';
You can also use the project of soldotno https://github.com/soldotno/react-native-lazyload-deux
The error happens because PropTypes in React 16 is deprecated. You should use the prop-types package from npm instead. Go to the
Anim.js
,LazyloadImage.js
,LazyloadListView.js
,LazyloadScrollView.js
,LazyloadView.js
. Change the import fromimport React, { Component, PropTypes } from 'react';
toimport React, { Component } from 'react';
import PropTypes from 'prop-types';
You can also use the project of soldotno https://github.com/soldotno/react-native-lazyload-deux
Thanks for helping, here is the updated repo:
Having same error in
react-native v0.52.0
together withreact-native-lazyload v1.1.0
. Does anyone figure out the problem?