diff --git a/CornerLabel.js b/CornerLabel.js index f1adbde..4f52282 100644 --- a/CornerLabel.js +++ b/CornerLabel.js @@ -6,15 +6,17 @@ */ import React, { - PropTypes, Component, } from 'react' import { StyleSheet, View, Text, + ViewPropTypes, } from 'react-native' +import PropTypes from 'prop-types'; + const styles = StyleSheet.create({ container: { position: 'absolute', @@ -39,7 +41,7 @@ export default class CornerLabel extends Component { } static propTypes = { - style: View.propTypes.style, + style: ViewPropTypes.style, textStyle: Text.propTypes.style, cornerRadius: PropTypes.number.isRequired, alignment: PropTypes.oneOf([