We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
defaultProps as function ignores variant
Not relevant - app only
When customizing the theme, add:
extendTheme({ components: { Text: { defaultProps: () => ({ variant: 'body' }), variants: { body: { ... }, } }, }, })
Result: The variant value is not applied.
variant
If defining defaultProps as an object, it is applied.
defaultProps
3.4.28
No response
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Description
defaultProps as function ignores variant
CodeSandbox/Snack link
Not relevant - app only
Steps to reproduce
When customizing the theme, add:
Result: The
variant
value is not applied.If defining
defaultProps
as an object, it is applied.NativeBase Version
3.4.28
Platform
Other Platform
No response
Additional Information
No response
The text was updated successfully, but these errors were encountered: