Randomly colored components in React Native
Just run npm start to see the rendered app...
at line 87, we defined the array of our colors then we randomly select one of them:
and put this color variable in database with other values for each item:
so when it's going to be rendered in return part we use it for background color.
then check line 46 of App.js to see it in component section: