akveo / akveo/react-native-ui-kitten
How to pass any variable to StyleService.create?
オープン
- 主要言語
- TypeScript
- スター
- 10.7k
- フォーク
- 962
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
Hello,
Is it possible to pass any `variable` to `StyleService.create` so that we can applying conditional styling or pass the prop value to styles?
Please check below code for more clarity.

For my use case, I want to pass the `size` prop to `StyleService.create` and give the fontSize there.
I can achieve this using inline style but I am avoiding inline styles.
I would also love to hear other better approaches to achieve this. Please any help is appreciated.
Thanks.
コントリビューションガイド
評価
この issue はまだ評価されていません。