From 94ab794c360f61a2ab8dca710625b78662ae1901 Mon Sep 17 00:00:00 2001 From: aglio Date: Tue, 24 Oct 2017 19:31:06 +0900 Subject: [PATCH] Fix PropTypes error --- lib/Anim.js | 5 ++--- lib/LazyloadImage.js | 4 ++-- lib/LazyloadListView.js | 4 ++-- lib/LazyloadScrollView.js | 4 ++-- lib/LazyloadView.js | 4 ++-- 5 files changed, 10 insertions(+), 11 deletions(-) diff --git a/lib/Anim.js b/lib/Anim.js index 99c570d..9e1bc56 100644 --- a/lib/Anim.js +++ b/lib/Anim.js @@ -1,6 +1,5 @@ -import React, { - PropTypes -} from 'react'; +import React from 'react'; +import PropTypes from 'prop-types'; import ReactNative, { LayoutAnimation } from 'react-native'; diff --git a/lib/LazyloadImage.js b/lib/LazyloadImage.js index 8c751d1..42e3c3e 100644 --- a/lib/LazyloadImage.js +++ b/lib/LazyloadImage.js @@ -1,7 +1,7 @@ import React, { - Component, - PropTypes + Component } from 'react'; +import PropTypes from 'prop-types'; import { Image, Platform diff --git a/lib/LazyloadListView.js b/lib/LazyloadListView.js index e14d20f..74a2d07 100644 --- a/lib/LazyloadListView.js +++ b/lib/LazyloadListView.js @@ -1,7 +1,7 @@ import React, { - Component, - PropTypes + Component } from 'react'; +import PropTypes from 'prop-types'; import { ListView } from 'react-native'; diff --git a/lib/LazyloadScrollView.js b/lib/LazyloadScrollView.js index 681b3ba..132abd4 100644 --- a/lib/LazyloadScrollView.js +++ b/lib/LazyloadScrollView.js @@ -1,7 +1,7 @@ import React, { - Component, - PropTypes + Component } from 'react'; +import PropTypes from 'prop-types'; import ReactNative, { ScrollView, Dimensions diff --git a/lib/LazyloadView.js b/lib/LazyloadView.js index 6ef57bc..98e5b8f 100644 --- a/lib/LazyloadView.js +++ b/lib/LazyloadView.js @@ -1,7 +1,7 @@ import React, { - Component, - PropTypes + Component } from 'react'; +import PropTypes from 'prop-types'; import { View, LayoutAnimation