首页 > 解决方案 > 在 react-native-gifted-chat 中设置悬停样式

问题描述

如何设置悬停链接的样式react-native-gifted-chat

例如,我目前有

const renderBubble = (props) => {  
    return (
        <Bubble
            { ...props }
            linkStyle={ {
                left: {  color: 'gray', textDecorationLine: 'none' }
            } }
            textStyle={ {
                left: { color: 'white' },
                right: { color: 'white' },
            } }
            wrapperStyle={ {
                left: { backgroundColor: '#8fafff', borderRadius: 5 },
                right: { backgroundColor: '#2dc4b3', borderRadius: 5 },
            } }
        />
    )
}

但在源代码或包的文档中看不到我可以控制链接的悬停颜色。

标签: react-native-gifted-chat

解决方案


推荐阅读