How to implement radio button in React Native

前端 未结 8 2347
不思量自难忘°
不思量自难忘° 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:08

    import RadioForm, { RadioButton, RadioButtonInput, RadioButtonLabel } from 'react-native-simple-radio-button';
    const radioProps = [
      { label: 'Male', value: false },
      { label: 'Female, value: true }
    ];
    
    
    
    
                     setGender(value)}
                    />
                  
    

提交回复
热议问题