radio-button-react-native
Advanced tools
Comparing version 1.0.6 to 1.1.6
@@ -15,2 +15,3 @@ import React,{Component} from 'react'; | ||
<TouchableWithoutFeedback onPress={() => this.props.onPress(this.props.value)}> | ||
<View style={{flexDirection:'row'}}> | ||
<View style={[{ | ||
@@ -36,2 +37,4 @@ height: this.props.outerCircleSize || 24, | ||
</View> | ||
{this.props.children} | ||
</View> | ||
</TouchableWithoutFeedback> | ||
@@ -38,0 +41,0 @@ ); |
{ | ||
"name": "radio-button-react-native", | ||
"version": "1.0.6", | ||
"version": "1.1.6", | ||
"description": "Simple Radio Button for React Native.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -39,5 +39,14 @@ # radio-button-react-native | ||
<View> | ||
<RadioButton currentValue={this.state.value} value={0} onPress={this.handleOnPress.bind(this)}/> | ||
<RadioButton currentValue={this.state.value} value={1} onPress={this.handleOnPress.bind(this)}/> | ||
<RadioButton currentValue={this.state.value} value={2} onPress={this.handleOnPress.bind(this)}/> | ||
<RadioButton currentValue={this.state.value} value={0} onPress={this.handleOnPress.bind(this)}> | ||
<Text>Button1</Text> | ||
</RadioButton> | ||
<RadioButton currentValue={this.state.value} value={1} onPress={this.handleOnPress.bind(this)}> | ||
<Text>Button2</Text> | ||
</RadioButton> | ||
<RadioButton currentValue={this.state.value} value={2} onPress={this.handleOnPress.bind(this)}> | ||
<Text>Button3</Text> | ||
</RadioButton> | ||
</View> | ||
@@ -44,0 +53,0 @@ ); |
4028
39
92