From a75a975442185e62f8002c50e750d2dd890193fd Mon Sep 17 00:00:00 2001 From: longopy Date: Wed, 24 Nov 2021 21:47:09 +0100 Subject: [PATCH] Updated CornerLabel.js to react_native version 0.66 --- CornerLabel.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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([