MCPcopy Create free account
hub / github.com/shoutem/ui / render

Method render

components/EmptyStateView.js:36–50  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

34 }
35
36 render() {
37 const { icon, message, onRetry, ...otherProps } = this.props;
38
39 return (
40 <View {...otherProps} styleName="vertical flexible h-center v-center">
41 <View styleName="icon-placeholder">
42 <Icon name={icon} />
43 </View>
44
45 <Subtitle styleName="h-center">{message}</Subtitle>
46
47 {onRetry && this.renderRetryButton()}
48 </View>
49 );
50 }
51}
52
53EmptyStateView.propTypes = {

Callers

nothing calls this directly

Calls 1

renderRetryButtonMethod · 0.95

Tested by

no test coverage detected