标签: react-native react-native-image
如何将{64}字符串markerPass.Logo__c传递到图像组件中?
markerPass.Logo__c
<Image source={{uri: 'data:image/png;base64,' + {markerPass.Logo__c} + '\''}}/>
答案 0 :(得分:2)
您可以通过反引号``
<Image source={{uri: `data:image/png;base64,${markerPass.Logo__c}\'`}}/>