From a70983ffe392dbbc7f0abf4c1229b3a8efdacd9a Mon Sep 17 00:00:00 2001 From: Name Date: Sun, 24 Sep 2017 18:01:37 +0330 Subject: [PATCH] fix(*) : resolve deprecated types --- lib/Avatar.js | 3 ++- lib/Button.js | 3 ++- lib/Card/Actions.js | 3 ++- lib/Card/Body.js | 3 ++- lib/Card/Media.js | 3 ++- lib/Card/index.js | 3 ++- lib/Checkbox.js | 3 ++- lib/CheckboxGroup.js | 3 ++- lib/Divider.js | 3 ++- lib/Drawer/Header.js | 3 ++- lib/Drawer/Section.js | 3 ++- lib/Drawer/index.js | 3 ++- lib/Icon.js | 3 ++- lib/IconToggle.js | 3 ++- lib/List.js | 3 ++- lib/RadioButton.js | 3 ++- lib/RadioButtonGroup.js | 3 ++- lib/Ripple.js | 3 ++- lib/Subheader.js | 3 ++- lib/Toolbar.js | 3 ++- lib/polyfill/Ripple.js | 3 ++- 21 files changed, 42 insertions(+), 21 deletions(-) diff --git a/lib/Avatar.js b/lib/Avatar.js index 1126c16..9564c7a 100644 --- a/lib/Avatar.js +++ b/lib/Avatar.js @@ -1,4 +1,5 @@ -import React, {Component, PropTypes} from "react"; +import React, {Component} from "react"; +import PropTypes from 'prop-types'; import {View, Image, Text} from "react-native"; import Icon from './Icon'; import { getColor } from './helpers'; diff --git a/lib/Button.js b/lib/Button.js index a40efae..b9024f5 100644 --- a/lib/Button.js +++ b/lib/Button.js @@ -1,4 +1,5 @@ -import React, {Component, PropTypes} from "react"; +import React, {Component} from "react"; +import PropTypes from 'prop-types'; import {ActivityIndicator, View, Text, TouchableNativeFeedback, Platform} from "react-native"; import Ripple from './polyfill/Ripple'; import { TYPO, PRIMARY, THEME_NAME, PRIMARY_COLORS } from './config'; diff --git a/lib/Card/Actions.js b/lib/Card/Actions.js index 2fe2c29..3bb21d5 100644 --- a/lib/Card/Actions.js +++ b/lib/Card/Actions.js @@ -1,4 +1,5 @@ -import React, {Component, PropTypes} from "react"; +import React, {Component} from "react"; +import PropTypes from 'prop-types'; import {StyleSheet, View} from "react-native"; export default class Actions extends Component { diff --git a/lib/Card/Body.js b/lib/Card/Body.js index 66bea89..6e03bce 100644 --- a/lib/Card/Body.js +++ b/lib/Card/Body.js @@ -1,4 +1,5 @@ -import React, {Component, PropTypes} from "react"; +import React, {Component} from "react"; +import PropTypes from 'prop-types'; import {StyleSheet, View} from "react-native"; export default class Body extends Component { diff --git a/lib/Card/Media.js b/lib/Card/Media.js index 715bfe8..f819c21 100644 --- a/lib/Card/Media.js +++ b/lib/Card/Media.js @@ -1,4 +1,5 @@ -import React, {Component, PropTypes} from "react"; +import React, {Component} from "react"; +import PropTypes from 'prop-types'; import {StyleSheet, Image, View} from "react-native"; export default class Media extends Component { diff --git a/lib/Card/index.js b/lib/Card/index.js index fed68bb..599623d 100644 --- a/lib/Card/index.js +++ b/lib/Card/index.js @@ -1,4 +1,5 @@ -import React, {Component, PropTypes} from "react"; +import React, {Component} from "react"; +import PropTypes from 'prop-types'; import {View, TouchableNativeFeedback} from "react-native"; import Ripple from '../polyfill/Ripple'; import { getColor, isCompatible } from '../helpers'; diff --git a/lib/Checkbox.js b/lib/Checkbox.js index 5127e9c..83dd9b4 100644 --- a/lib/Checkbox.js +++ b/lib/Checkbox.js @@ -1,4 +1,5 @@ -import React, {Component, PropTypes} from "react"; +import React, {Component} from "react"; +import PropTypes from 'prop-types'; import {StyleSheet, Text, View, TouchableHighlight} from "react-native"; import { TYPO, PRIMARY, COLOR, PRIMARY_COLORS, THEME_NAME } from './config'; import Icon from './Icon'; diff --git a/lib/CheckboxGroup.js b/lib/CheckboxGroup.js index 8535dc2..572fc3d 100644 --- a/lib/CheckboxGroup.js +++ b/lib/CheckboxGroup.js @@ -1,4 +1,5 @@ -import React, {Component, PropTypes} from "react"; +import React, {Component} from "react"; +import PropTypes from 'prop-types'; import {View} from "react-native"; import Checkbox from './Checkbox'; import { THEME_NAME, PRIMARY, PRIMARY_COLORS } from './config'; diff --git a/lib/Divider.js b/lib/Divider.js index eb03443..fea2a8b 100644 --- a/lib/Divider.js +++ b/lib/Divider.js @@ -1,4 +1,5 @@ -import React, {Component, PropTypes} from "react"; +import React, {Component} from "react"; +import PropTypes from 'prop-types'; import {View} from "react-native"; import { THEME_NAME } from './config'; diff --git a/lib/Drawer/Header.js b/lib/Drawer/Header.js index b85e7af..05cd4f2 100644 --- a/lib/Drawer/Header.js +++ b/lib/Drawer/Header.js @@ -1,4 +1,5 @@ -import React, {Component, PropTypes} from "react"; +import React, {Component} from "react"; +import PropTypes from 'prop-types'; import {View, Image} from "react-native"; export default class Header extends Component { diff --git a/lib/Drawer/Section.js b/lib/Drawer/Section.js index 67b14f8..76662ca 100644 --- a/lib/Drawer/Section.js +++ b/lib/Drawer/Section.js @@ -1,4 +1,5 @@ -import React, {Component, PropTypes} from "react"; +import React, {Component} from "react"; +import PropTypes from 'prop-types'; import {View, Text, TouchableNativeFeedback} from "react-native"; import Icon from '../Icon'; import Ripple from '../polyfill/Ripple'; diff --git a/lib/Drawer/index.js b/lib/Drawer/index.js index e97a60c..780229d 100644 --- a/lib/Drawer/index.js +++ b/lib/Drawer/index.js @@ -1,4 +1,5 @@ -import React, {Component, PropTypes} from "react"; +import React, {Component} from "react"; +import PropTypes from 'prop-types'; import {ScrollView} from "react-native"; import { THEME_NAME, PRIMARY_COLORS } from '../config'; import { getColor } from '../helpers'; diff --git a/lib/Icon.js b/lib/Icon.js index 38f836a..361686d 100644 --- a/lib/Icon.js +++ b/lib/Icon.js @@ -1,4 +1,5 @@ -import React, {Component, PropTypes} from "react"; +import React, {Component} from "react"; +import PropTypes from 'prop-types'; import {View} from "react-native"; import { getColor } from './helpers'; import VectorIconComponent from './VectorIconComponent'; diff --git a/lib/IconToggle.js b/lib/IconToggle.js index b5cd31c..e3bc75b 100644 --- a/lib/IconToggle.js +++ b/lib/IconToggle.js @@ -1,4 +1,5 @@ -import React, {Component, PropTypes} from "react"; +import React, {Component} from "react"; +import PropTypes from 'prop-types'; import {Text, View, Animated} from "react-native"; import { getColor } from './helpers'; diff --git a/lib/List.js b/lib/List.js index 22e9929..0db768a 100644 --- a/lib/List.js +++ b/lib/List.js @@ -1,4 +1,5 @@ -import React, {Component, PropTypes} from "react"; +import React, {Component} from "react"; +import PropTypes from 'prop-types'; import {StyleSheet, View, Text, TouchableWithoutFeedback} from "react-native"; import { TYPO } from './config'; diff --git a/lib/RadioButton.js b/lib/RadioButton.js index 819c1d8..407072b 100644 --- a/lib/RadioButton.js +++ b/lib/RadioButton.js @@ -1,4 +1,5 @@ -import React, {Component, PropTypes} from "react"; +import React, {Component} from "react"; +import PropTypes from 'prop-types'; import {StyleSheet, Text, View, TouchableHighlight} from "react-native"; import Icon from './Icon'; import IconToggle from './IconToggle'; diff --git a/lib/RadioButtonGroup.js b/lib/RadioButtonGroup.js index 3f7a8ce..28b4418 100644 --- a/lib/RadioButtonGroup.js +++ b/lib/RadioButtonGroup.js @@ -1,4 +1,5 @@ -import React, {Component, PropTypes} from "react"; +import React, {Component} from "react"; +import PropTypes from 'prop-types'; import {View} from "react-native"; import RadioButton from './RadioButton'; import { PRIMARY, PRIMARY_COLORS, THEME_NAME } from './config'; diff --git a/lib/Ripple.js b/lib/Ripple.js index 1afa283..a9e35bb 100644 --- a/lib/Ripple.js +++ b/lib/Ripple.js @@ -1,4 +1,5 @@ -import React, {Component, PropTypes} from "react"; +import React, {Component} from "react"; +import PropTypes from 'prop-types'; import {View, Text, TouchableNativeFeedback} from "react-native"; import { default as PolyfillRipple } from './polyfill/Ripple'; import { isCompatible } from './helpers'; diff --git a/lib/Subheader.js b/lib/Subheader.js index 5817fc9..68aa8b5 100644 --- a/lib/Subheader.js +++ b/lib/Subheader.js @@ -1,4 +1,5 @@ -import React, {Component, PropTypes} from "react"; +import React, {Component} from "react"; +import PropTypes from 'prop-types'; import {StyleSheet, View, Text} from "react-native"; import { TYPO, THEME_NAME } from './config'; import { getColor } from './helpers'; diff --git a/lib/Toolbar.js b/lib/Toolbar.js index d28c51c..629c923 100644 --- a/lib/Toolbar.js +++ b/lib/Toolbar.js @@ -1,4 +1,5 @@ -import React, {Component, PropTypes} from "react"; +import React, {Component} from "react"; +import PropTypes from 'prop-types'; import {View, Text} from "react-native"; import { TYPO, PRIMARY, THEME_NAME, PRIMARY_COLORS } from './config'; import { getColor } from './helpers'; diff --git a/lib/polyfill/Ripple.js b/lib/polyfill/Ripple.js index 4e41e9c..919f031 100644 --- a/lib/polyfill/Ripple.js +++ b/lib/polyfill/Ripple.js @@ -1,4 +1,5 @@ -import React, {Component, PropTypes} from "react"; +import React, {Component} from "react"; +import PropTypes from 'prop-types'; import {View, Animated, TouchableOpacity, Platform} from "react-native"; import elevationPolyfill from './Elevation';