Factory - Pass theme rather than restyling component #4858
Unanswered
dylan-westbury
asked this question in
Q&A
Replies: 1 comment
-
Hey @dylan-westbury , Yes you can pass. Here is the example for the same. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
Is it possible to pass the existing styling for a component (e.g. an Input) to a NativeBase factory component, so the styling doesn't have to be recreated and managed separately to the theme?
For example:
const NBInput = Factory(TextInput, theme.components.Input);
Beta Was this translation helpful? Give feedback.
All reactions