-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathButton.js
More file actions
32 lines (27 loc) · 773 Bytes
/
Button.js
File metadata and controls
32 lines (27 loc) · 773 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
/**
* Button.
* Tab bar button implementation for the Bottom-Navigation-View.
*/
'use strict';
/* --- Imports --- */
import React, {Component} from 'react';
import {TouchableWithoutFeedback, View} from 'react-native';
import Ripple from './Ripple';
/* --- Class methods --- */
export default class Button extends Component {
render() {
return (
<TouchableWithoutFeedback {...this.props}>
<Ripple
{...this.props}
maskBorderRadiusInPercent={this.props.rippleBorderRadiusPercent}
rippleDuration={this.props.rippleDuration}
maskDuration={this.props.rippleDuration}
onTouch={this.props.onTouch}
>
{this.props.children}
</Ripple>
</TouchableWithoutFeedback>
)
}
}