diff --git a/lib/ToastContainer.js b/lib/ToastContainer.js index 4d9bebe..4c127fd 100644 --- a/lib/ToastContainer.js +++ b/lib/ToastContainer.js @@ -86,7 +86,8 @@ class ToastContainer extends Component { onHide: PropTypes.func, onHidden: PropTypes.func, onShow: PropTypes.func, - onShown: PropTypes.func + onShown: PropTypes.func, + textProps: PropTypes.object }; static defaultProps = { @@ -219,11 +220,14 @@ class ToastContainer extends Component { pointerEvents="none" ref={ele => this._root = ele} > - <Text style={[ - styles.textStyle, - props.textStyle, - props.textColor && {color: props.textColor} - ]}> + <Text + {...props.textProps} + style={[ + styles.textStyle, + props.textStyle, + props.textColor && {color: props.textColor} + ]} + > {this.props.children} </Text> </Animated.View> diff --git a/package.json b/package.json index 106a169..83585c0 100644 --- a/package.json +++ b/package.json @@ -18,7 +18,7 @@ "focus" ], "dependencies": { - "react-native-root-siblings": "^1.2.1", + "react-native-root-siblings": "https://github.com/zeppelin-no/react-native-root-siblings.git", "prop-types": "^15.5.10" } }