npmchenwei111
Version:
test1111
21 lines (19 loc) • 538 B
JavaScript
import React, { Component } from 'react'
import { TouchableOpacity } from 'react-native'
import { ClickUtils } from '../../utils/ClickUtils'
export default class Button extends Component {
constructor (props) {
super(props)
}
render () {
return (
<TouchableOpacity activeOpacity={1}
{...this.props}
onPress={
ClickUtils.onPress(this.props.onPress)
}>
{this.props.children}
</TouchableOpacity>
)
}
}