diff --git a/lib/index.js b/lib/index.js index 99fbe6a3..bf98856f 100644 --- a/lib/index.js +++ b/lib/index.js @@ -268,7 +268,7 @@ export default class PhoneInput extends Component { const styleType = PropTypes.oneOfType([PropTypes.object, PropTypes.number]); PhoneInput.propTypes = { - textComponent: PropTypes.func, + textComponent: PropTypes.elementType, initialCountry: PropTypes.string, onChangePhoneNumber: PropTypes.func, value: PropTypes.string,