From 08e406a8f603761a4c560da422c26130ed21abe2 Mon Sep 17 00:00:00 2001 From: Ravikumar S Date: Tue, 20 Feb 2018 10:11:50 +0530 Subject: [PATCH] W & H added to customise --- RNShineButton.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/RNShineButton.js b/RNShineButton.js index 0236519..d7ac927 100644 --- a/RNShineButton.js +++ b/RNShineButton.js @@ -20,7 +20,7 @@ class RNShineButton extends Component { if (Platform.OS === 'ios') { return { this._shineButton = ref; - }} style={{ width: this.props.size, height: this.props.size }} + }} style={{ width: this.props.width, height: this.props.height }} props={{ size: this.props.size, on: this.props.value, @@ -32,7 +32,7 @@ class RNShineButton extends Component { } else if (Platform.OS === 'android') { return { this._shineButton = ref; - }} style={{ width: this.props.size, height: this.props.size }} size={this.props.size} on={this.props.value} disable={this.props.disabled} shape={this.props.shape} color={this.props.color} fillColor={this.props.fillColor} onChange={this._onChange} />; + }} style={{ width: this.props.width, height: this.props.height }} size={this.props.size} on={this.props.value} disable={this.props.disabled} shape={this.props.shape} color={this.props.color} fillColor={this.props.fillColor} onChange={this._onChange} />; } }