react-native-gifted-chat
react-native-gifted-chat copied to clipboard
systemMessage does not seem to have parsePatterns
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...

Expected Results

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]
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 😀 !!!
Bump! I see the package is actively maintained again!
Any updates for this?