mirror of
https://github.com/zoriya/react-native-svg.git
synced 2025-12-21 06:15:15 +00:00
Fix remaining React.PropTypes to use import PropTypes from 'prop-types';
This commit is contained in:
@@ -20,7 +20,7 @@ export default class extends Shape {
|
||||
};
|
||||
|
||||
static childContextTypes = {
|
||||
isInAParentText: React.PropTypes.bool
|
||||
isInAParentText: PropTypes.bool
|
||||
};
|
||||
|
||||
getChildContext() {
|
||||
@@ -31,7 +31,7 @@ export default class extends Shape {
|
||||
|
||||
getContextTypes() {
|
||||
return {
|
||||
isInAParentText: React.PropTypes.bool
|
||||
isInAParentText: PropTypes.bool
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
@@ -19,7 +19,7 @@ export default class extends Shape {
|
||||
};
|
||||
|
||||
static childContextTypes = {
|
||||
isInAParentText: React.PropTypes.bool
|
||||
isInAParentText: PropTypes.bool
|
||||
};
|
||||
|
||||
getChildContext() {
|
||||
@@ -30,7 +30,7 @@ export default class extends Shape {
|
||||
|
||||
getContextTypes() {
|
||||
return {
|
||||
isInAParentText: React.PropTypes.bool
|
||||
isInAParentText: PropTypes.bool
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user