如何在按邮件周围显示弹出窗口? | Flyerchat |反应天然
I am using flyerhq https://github.com/flyerhq/react-native-chat- UI 用于聊天功能。
我想在按压消息周围显示弹出窗口。
以下是显示聊天消息并获得长期事件的代码。
<FlyerHQChat
onMessageLongPress={(messageInfo: MessageType.Any) => {
setMessageDetails(messageInfo);
setOpen(true);
}}
....
/>
这是当前弹出案的代码
<TouchableOpacity ref={touchable}>
</TouchableOpacity>
<Popover
from={touchable}
isVisible={open}
onRequestClose={() => setOpen(false)}
arrowSize={{ height: 0, width: 0 }}>
<Text>This is popover </Text>
</Popover>
,屏幕顶部显示的弹出窗口
是Demo https://drive.google.com/file/d/1wazkkmevrbxewm9azvvav9c4wn8xuuuy9/view
当前popover
I am using flyerhq https://github.com/flyerhq/react-native-chat-ui for the chat function.
I want to display popover around the pressed message.
Below is the code to display chat messages and get a long-press event.
<FlyerHQChat
onMessageLongPress={(messageInfo: MessageType.Any) => {
setMessageDetails(messageInfo);
setOpen(true);
}}
....
/>
Here is the code for popover
<TouchableOpacity ref={touchable}>
</TouchableOpacity>
<Popover
from={touchable}
isVisible={open}
onRequestClose={() => setOpen(false)}
arrowSize={{ height: 0, width: 0 }}>
<Text>This is popover </Text>
</Popover>
Currently, a popover displayed on top of the screen
Here is a link to the demo https://drive.google.com/file/d/1wAzKMevRBXeWM9AZVVAv9c4WN8xUUuy9/view
Image of the current Popover
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论