📜  反应本机单选按钮 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:01:25.390000             🧑  作者: Mango

代码示例1
import RadioForm, {RadioButton, RadioButtonInput, RadioButtonLabel} from 'react-native-simple-radio-button';  var radio_props = [  {label: 'param1', value: 0 },  {label: 'param2', value: 1 }]; var RadioButtonProject = React.createClass({  getInitialState: function() {    return {      value: 0,    }  },  render: function() {    return (               {this.setState({value:value})}}        />          );  }});