diff --git a/package.json b/package.json index 29d2b079..6fcfc324 100644 --- a/package.json +++ b/package.json @@ -43,6 +43,6 @@ "prop-types": "^15.5.9", "react-native-material-buttons": "^0.5.0", "react-native-material-ripple": "^0.8.0", - "react-native-material-textfield": "^0.12.0" + "react-native-material-textfield": "git+https://github.com/javarahulsharma/react-native-material-textfield.git" } } diff --git a/src/components/dropdown/index.js b/src/components/dropdown/index.js index b1e65a1f..ae688365 100644 --- a/src/components/dropdown/index.js +++ b/src/components/dropdown/index.js @@ -1,4 +1,3 @@ -import PropTypes from 'prop-types'; import React, { PureComponent } from 'react'; import { Text, @@ -9,7 +8,6 @@ import { TouchableWithoutFeedback, Dimensions, Platform, - ViewPropTypes, I18nManager, } from 'react-native'; import Ripple from 'react-native-material-ripple'; @@ -78,83 +76,6 @@ export default class Dropdown extends PureComponent { useNativeDriver: false, }; - static propTypes = { - ...TouchableWithoutFeedback.propTypes, - - disabled: PropTypes.bool, - - value: PropTypes.oneOfType([ - PropTypes.string, - PropTypes.number, - ]), - - data: PropTypes.arrayOf(PropTypes.object), - - valueExtractor: PropTypes.func, - labelExtractor: PropTypes.func, - propsExtractor: PropTypes.func, - - absoluteRTLLayout: PropTypes.bool, - - dropdownOffset: PropTypes.shape({ - top: PropTypes.number.isRequired, - left: PropTypes.number.isRequired, - }), - - dropdownMargins: PropTypes.shape({ - min: PropTypes.number.isRequired, - max: PropTypes.number.isRequired, - }), - - dropdownPosition: PropTypes.number, - - rippleColor: PropTypes.string, - rippleCentered: PropTypes.bool, - rippleSequential: PropTypes.bool, - - rippleInsets: PropTypes.shape({ - top: PropTypes.number, - right: PropTypes.number, - bottom: PropTypes.number, - left: PropTypes.number, - }), - - rippleOpacity: PropTypes.number, - shadeOpacity: PropTypes.number, - - rippleDuration: PropTypes.number, - animationDuration: PropTypes.number, - - fontSize: PropTypes.number, - - textColor: PropTypes.string, - itemColor: PropTypes.string, - selectedItemColor: PropTypes.string, - disabledItemColor: PropTypes.string, - baseColor: PropTypes.string, - - itemTextStyle: Text.propTypes.style, - - itemCount: PropTypes.number, - itemPadding: PropTypes.number, - - onLayout: PropTypes.func, - onFocus: PropTypes.func, - onBlur: PropTypes.func, - onChangeText: PropTypes.func, - - renderBase: PropTypes.func, - renderAccessory: PropTypes.func, - - containerStyle: (ViewPropTypes || View.propTypes).style, - overlayStyle: (ViewPropTypes || View.propTypes).style, - pickerStyle: (ViewPropTypes || View.propTypes).style, - - supportedOrientations: PropTypes.arrayOf(PropTypes.string), - - useNativeDriver: PropTypes.bool, - }; - constructor(props) { super(props); diff --git a/src/components/item/index.js b/src/components/item/index.js index 22e36354..32579816 100644 --- a/src/components/item/index.js +++ b/src/components/item/index.js @@ -1,4 +1,3 @@ -import PropTypes from 'prop-types'; import React, { PureComponent } from 'react'; import { Button } from 'react-native-material-buttons'; @@ -12,12 +11,6 @@ export default class DropdownItem extends PureComponent { shadeBorderRadius: 0, }; - static propTypes = { - ...Button.propTypes, - - index: PropTypes.number.isRequired, - }; - constructor(props) { super(props);