mirror of
https://github.com/zoriya/react-native-svg.git
synced 2026-06-02 06:35:04 +00:00
Merge branch 'master' into percentage-props-refactor-ios
This commit is contained in:
@@ -17,6 +17,22 @@ class TSpan extends Shape {
|
||||
textAnchor: PropTypes.oneOf(['start', 'middle', 'end'])
|
||||
};
|
||||
|
||||
static childContextTypes = {
|
||||
isInAParentText: React.PropTypes.bool
|
||||
};
|
||||
|
||||
getChildContext() {
|
||||
return {
|
||||
isInAParentText: true
|
||||
};
|
||||
};
|
||||
|
||||
getContextTypes() {
|
||||
return {
|
||||
isInAParentText: React.PropTypes.bool
|
||||
};
|
||||
};
|
||||
|
||||
setNativeProps = (...args) => {
|
||||
this.root.setNativeProps(...args);
|
||||
};
|
||||
|
||||
@@ -17,6 +17,22 @@ class Text extends Shape {
|
||||
textAnchor: PropTypes.oneOf(['start', 'middle', 'end'])
|
||||
};
|
||||
|
||||
static childContextTypes = {
|
||||
isInAParentText: React.PropTypes.bool
|
||||
};
|
||||
|
||||
getChildContext() {
|
||||
return {
|
||||
isInAParentText: true
|
||||
};
|
||||
};
|
||||
|
||||
getContextTypes() {
|
||||
return {
|
||||
isInAParentText: React.PropTypes.bool
|
||||
};
|
||||
};
|
||||
|
||||
setNativeProps = (...args) => {
|
||||
this.root.setNativeProps(...args);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user