react-native-gifted-chat icon indicating copy to clipboard operation
react-native-gifted-chat copied to clipboard

systemMessage does not seem to have parsePatterns

Open lucswart opened this issue 4 years ago • 2 comments

Issue Description

Rendering links works fine. I had to do some adjustment to android with adding the parsePatterns() function and it worked perfectly fine. The only thing I am facing now is when there is a systemMessage with a link it doesn't recognize it as a link and is not clickable. Is there any way to solve this?

Steps to Reproduce / Code Snippets

Tried different things;

  <SystemMessage
        {...props}
        wrapperStyle={{
          borderWidth: 4,
          backgroundColor: Colors.primaryColor,
          borderColor: dark ? "#272727" : "#f5f5f5",
          borderRadius: 20,
        }}
        parsePatterns={(linkStyle) => [
          {
            type: "url",
            style: linkStyle,
            onPress: (e) => openLink(e),
          },
        ]}
        textStyle={{ color: "#fff", fontSize: 15, paddingVertical: 10, paddingHorizontal: 20 }}
      />

but none of them work...

Systemmessage

Expected Results

Normal message with link underline, as it should be.

Additional Information

  • Nodejs version: [14.*]
  • React version: [17.0.1]
  • React Native version: [0.64.2]
  • react-native-gifted-chat version: [0.16.3]
  • Platform(s) (iOS, Android, or both?): [both]
  • TypeScript version: [4.2.3]

lucswart avatar Sep 14 '21 10:09 lucswart

Sorry, but this issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. BTW Thank you for your contributions 😀 !!!

stale[bot] avatar Apr 17 '22 06:04 stale[bot]

Bump! I see the package is actively maintained again!

lucswart avatar Apr 19 '22 10:04 lucswart

Any updates for this?

wjb8 avatar Feb 02 '23 20:02 wjb8