()
| 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 | |
| 56 | ShareButton.propTypes = { |
nothing calls this directly
no outgoing calls
no test coverage detected