and, in your onSend method take this uri from your state, use the uri to attach the image (I'm using ReactNativeFile, but it's come from apollo-client), put it in your message object, and send it to your backend
importIconfrom"react-native-vector-icons/Ionicons";<Iconname='md-pricetag'size={16}color='#cccccc'></Icon> 上面介绍了react-native-vector-icons库的使用,但是目前为止你能使用的iconfont只有上面说的默认引入的那些ttf文件中的icon,因为上面所使用的< Icon>< /Icon>只支持默认引入的那些icon。
import Icon from "react-native-vector-icons/Ionicons"; <Icon name='md-pricetag' size={16} color='#cccccc'></Icon> 2.如何使用任意自定义的iconfont 上面介绍了react-native-vector-icons库的使用,但是目前为止你能使用的iconfont只有上面说的默认引入的那些ttf文件中的icon,因为上面所使用的< Icon>< /...