Grokking React Native
Vote

0% completed

​

Using Colors and Theming

The strings #FF5733 and rgb(255, 87, 51) produce exactly the same color, because React Native converts every color string to one number before it reaches the native side. The function processColor shows that conversion.

#FF5733 4294924083 rgb(255, 87, 51) 4294924083 rgba(255, 87, 51, 0.7) 3019855667 #FF5733B3 3019855667 notacolor undefined

The formats are therefore only different ways of writing the same information, and you can choose whichever is easiest to read. You can use a name such as 'red' or `'transparent'

.....

.....

.....

Like the course? Get enrolled and start learning!

Reading Progress

0%


Vote for new content