()
| 21 | } |
| 22 | |
| 23 | renderRetryButton() { |
| 24 | const { retryButtonTitle } = this.props; |
| 25 | |
| 26 | // Show retry button at the bottom only if there is an onRetry action passed |
| 27 | return ( |
| 28 | <View styleName="horizontal anchor-bottom"> |
| 29 | <Button styleName="full-width" onPress={this.onRetry}> |
| 30 | <Text>{retryButtonTitle}</Text> |
| 31 | </Button> |
| 32 | </View> |
| 33 | ); |
| 34 | } |
| 35 | |
| 36 | render() { |
| 37 | const { icon, message, onRetry, ...otherProps } = this.props; |