我的 RN 0.61.5 应用程序正在运行react-native-gifted-chat 0.13.0
. 这是非常简单的渲染:
render() {
console.log("In GiftedChat render : ");
return (
<GiftedChat
messages={this.state.messages}
onSend={messages => this._onSend(messages)}
user={{_id: this.state.myself.id,
name: this.state.myself.name,
avatar: this.state.myself.user_data.avatar}}
/>
);
}
我想通过输入文本框添加文件上传按钮(可以打开图库或文件管理器),允许用户上传图像或视频文件。我怎样才能做到这一点?我在网上搜索并查看了文档,但没有找到在聊天屏幕上添加按钮的方法/钩子。多谢。