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

Method render

components/ShareButton.js:37–53  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

35 }
36
37 render() {
38 const { animationName, iconProps, url, ...otherProps } = this.props;
39
40 if (!url) {
41 return null;
42 }
43
44 return (
45 <Button onPress={unavailableInWeb(this.onShare)} {...otherProps}>
46 <Icon
47 name={Platform.OS === 'ios' ? 'share' : 'share-android'}
48 animationName={animationName}
49 {...iconProps}
50 />
51 </Button>
52 );
53 }
54}
55
56ShareButton.propTypes = {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected