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

Function ClearButton

components/SearchField.js:12–16  ·  view source on GitHub ↗
({ style, onPress })

Source from the content-addressed store, hash-verified

10import { View } from './View';
11
12const ClearButton = ({ style, onPress }) => (
13 <Button onPress={onPress} style={style.clearButton} styleName="clear tight">
14 <Icon name="clear-text" style={style.clearIcon} />
15 </Button>
16);
17
18ClearButton.propTypes = {
19 style: PropTypes.object.isRequired,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected