Button
Button is the basic button component. Internal implementation relies on <Touchable>
to support onPress defined click events.
Button with default styles, but also support the style of custom.
Install
$ npm install rax-button --save
Import
import Button from 'rax-button';
Props
name | type | default | describe |
---|---|---|---|
onPress | Function | click events |
At the same time to support any custom attributes through
Example
// demoimport createElement Component render from 'rax';import View from 'rax-view';import Button from 'rax-button'; { return <View => <Button =>点我</Button> </View> ; } ;