mirror of
https://github.com/zoriya/react-native-svg.git
synced 2025-12-21 06:15:15 +00:00
Fix #231
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);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user