How to implement radio button in React Native

前端 未结 8 2326
不思量自难忘°
不思量自难忘° 2020-12-25 11:18

I am converting React code to React Native. So I need to implement radio buttons.

8条回答
  •  执笔经年
    2020-12-25 12:22

    You can use react-native-radio-input. Its very simple to use.

    import RadioGroup,{Radio} from "react-native-radio-input";
    .
    .
    .
    //Receive the checked value (ES6 syntax)
    getChecked = (value) => {
    // value = our checked value
    alert(value)
    }
     
      
      
      
      
      
    
    .
    .
    

提交回复
热议问题