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

Class Button

components/Button.js:6–19  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4import { connectStyle } from '@shoutem/theme';
5
6class Button extends PureComponent {
7 render() {
8 const { style } = this.props;
9 const { underlayColor, ...otherStyle } = style;
10
11 return (
12 <TouchableOpacity
13 {...this.props}
14 style={otherStyle}
15 underlayColor={underlayColor}
16 />
17 );
18 }
19}
20
21Button.propTypes = {
22 ...TouchableOpacity.propTypes,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected