我是新来的本地人。我正在使用一个名为react-native-picker-checkbox的npm软件包。它在 Android 上可以正常运行,但是对于 iOS ,我收到一条错误消息,说该平台不支持TouchableNativeFeedback
。寻找可在iOS上使用的解决方案。
import PickerCheckBox from 'react-native-picker-checkbox';
handleConfirm(pItems){
console.log('pItems =>', pItems);
}
const items = [
{
itemKey:1,
itemDescription:'Item 1'
},
{
itemKey:2,
itemDescription:'Item 2'
},
{
itemKey:3,
itemDescription:'Item 3'
}
];
render() {
return(
<PickerCheckBox
data={items}
headerComponent={<Text style={{fontSize:25}} >items</Text>}
OnConfirm={(pItems) => this.handleConfirm(pItems)}
ConfirmButtonTitle='OK'
DescriptionField='itemDescription'
KeyField='itemKey'
placeholder='select some items'
arrowColor='#FFD740'
arrowSize={10}
placeholderSelectedItems ='$count selected item(s)'
/>
)
}