Passing custom text component throws an error in TypeScript
See original GitHub issueWhenever a custom component is passed to the textComponent
prop, TypeScript throws the following error:

Stack details: Expo SDK 44.0.0 React Native v0.64.3 React v17.0.1 TypeScript v4.3.5
Issue Analytics
- State:
- Created 2 years ago
- Comments:7 (4 by maintainers)
Top Results From Across the Web
reactjs - Typescript error with custom Typography component
I have created a rather basic typography component for my React application and it's throwing a Typescript error which i must admit is...
Read more >Custom errors, extending Error - The Modern JavaScript Tutorial
JavaScript allows to use throw with any argument, so technically our custom error classes don't need to inherit from Error .
Read more >Improving TypeScript error handling with exhaustive type ...
Throwing custom errors using try...catch. Creating custom errors and throwing them is a better option than returning null because we can achieve ...
Read more >Error - JavaScript - MDN Web Docs - Mozilla
Error objects are thrown when runtime errors occur. The Error object can also be used as a base object for user-defined exceptions.
Read more >Creating Custom Errors in JavaScript - YouTube
Did you know that you can create your own custom Error objects in JavaScript ? This can be accomplished with both the older...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Hello again @dmahajan980
I think I fixed it and fixed many more.
Can you please try the new release: 2.1.10
@dmahajan980
You can use iconImageStyle with tintColor style 😃