Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Typing for parsePatterns prop in MessageText.tsx, extracted ParsedShape type #2259

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

tarikfp
Copy link

@tarikfp tarikfp commented Aug 9, 2022

Hi there 👋🏻

Thanks for this amazing library!

I have come across the usage of parsePatterns prop in MessageText.tsx component, and noticed that it has any type. Extracted ParsedShape type from react-native-parsed library, as they are not exposing the ParsedShape directly. Thought this would be a great improvement, especially when adding custom patterns to the ParsedText component.

@tarikfp tarikfp changed the title refactor: typing for parsePatterns method, extracted ParsedShape type Typing for parsePatterns prop in MessageText.tsx, extracted ParsedShape type Aug 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant