我在 React Native 上進行測試。我用react-native-paper這個。這是我的代碼:{(!props.question.isSingleAnswer && props.question.answers.length) && <View> {props.question.answers.map((item) => ( <List.Item key={item.id.toString()} title={item.title} left={checkProps => <Checkbox {...checkProps} status='unchecked' onPress={() => addAnswer(props.question, item)}/>} /> ))} </View>}但我無法選中復選框。單選按鈕也有同樣的問題。為什么會發生,我該如何解決?UPD:問題已解決。問題已關閉。
無法點擊 React Native 中的復選框
慕容3067478
2022-12-18 18:53:00