'Warning: Failed prop type: Invalid prop `source` supplied to `Image`, expected one of type [string, number]
hello guys I face with that issue,could you help me! { "createdDate": "25 April 2022", "critique": "string", "description": null, "patient": { "name": "deneme", "profileUrl": "demeeee", "surname": "testttt", "uId": "uId_value" }, "rate": 3, "status": { "name": "string" }, "uId": "uId", "uniqueId": "uId" } const renderEvaluateItem = (dataItem) => { console.log(dataItem.item); return ( <> <TouchableOpacity style={{ flexDirection: 'row', justifyContent: 'flex-start' }}> <View style={{ marginHorizontal: wp(2) }}>
<View style={{ flexDirection: 'column', marginTop: wp(4) }}>
<View style={{ flexDirection: 'row', justifyContent: 'space-between', alignItems: 'center' }}>
<Text style={{ width: wp(60), paddingRight: wp(2) }} align='left' size={wp(4)} type='Bold'>{dataItem.item.patient.name}</Text>
<IconButton icon={SpamIcon} size={wp(8)} onPress={() => { setModal('spam') }} />
</View>
<Text style={{ width: wp(75), paddingRight: wp(2) }} align='left' size={wp(4)} type='Light'>{dataItem.item.createdDate}</Text>
<Text style={{ width: wp(75), paddingRight: wp(2) }} align='left' size={wp(3.5)} type='Medium'>{dataItem.item.critique}</Text>
<View
style={{
flexDirection: "row",
marginTop:wp(2),
width: "0%",
alignItems: "center",
}}
>
{Array.apply(null, Array(dataItem.item.rate)).map(el => (<RedPlus style={{ marginRight: wp(1) }} height={wp(5)} width={wp(5)} />))}
</View>
</View>
</TouchableOpacity>
<ModalBox onClose={() => setModal('')} visible={modal === 'spam'} description={lan.spamText} onSubmit={async () => {
setModal('')
onSpamSubmit(dataItem);
}} title={`${lan.spam}`} leftButtonText={lan.no} rightButtonText={lan.yes} />
</>
)
}
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|