A button component looks like native UIButton for React Native.
var CKButton = require('./CKButton');
var Example = React.createClass({
render: function() {
return(
<CKButton onPress = {()=>{console.log('Pressed.')}}/>
);
}
});
module.exports = Example;
It supports:
- disabled
- title
- titleHighlighted
- titleDisabled
- titleStyle
- titleStyleHighlighted
- titleStyleDisabled
- imageSource
- imageSourceHighlighted
- imageSourceDisabled
- onPress
And every properties are optional.
Every feedbacks are welcome.