Welcome to 16892 Developer Community-Open, Learning,Share
menu search
person
Welcome To Ask or Share your Answers For Others

Categories

I'm new to react-native and I try to do my best to create clean code. I added a theme file with a palette I want to use all across my App. How can I use my colors also for styling with component properties like the color property below:

<MaterialCommunityIcons
  name={reverse ? 'arrow-up' : 'arrow-down'}
  style={styles.sortingArrow}
  size={20}
  color={'white'} />

How can I replace white with my theme color?

Thanks!


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
3.6k views
Welcome To Ask or Share your Answers For Others

1 Answer

等待大神答复

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
Welcome to 16892 Developer Community-Open, Learning and Share

548k questions

547k answers

4 comments

56.5k users

...