# Color for items according to the order (React Native)

**URL:** <https://forums.rocket.chat/t/color-for-items-according-to-the-order-react-native/19191>\
**Category:** Mobile Apps\
**Tags:** android\
**Created:** [January 15, 2024, 9:57am UTC](https://forums.rocket.chat/t/color-for-items-according-to-the-order-react-native/19191 "2024-01-15T09:57:24Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![maom](https://avatars.discourse-cdn.com/v4/letter/m/f19dbf/32.png) [@maom](https://forums.rocket.chat/u/maom)\
**Post date:** [January 15, 2024, 9:57am UTC](https://forums.rocket.chat/t/color-for-items-according-to-the-order-react-native/19191/1 "2024-01-15T09:57:24Z")

</div>

![Screenshot 2024-01-15 165234](https://us1.discourse-cdn.com/flex021/uploads/rocketchat/original/2X/b/b8eb655e66d42402eeb9a390756cef1643b47661.jpeg)

hello can you guys help me.  
I want to make a color in the flatlist, so on row 1 (0001) it is blue, then on row 2 check “is the item in row one the same as row 2?”, if it is the same then the color is also the same…

- then when you go to row 3, you have an item that is different from item 2, so the color is also different.
- then when you go to row 4, you have an item that is different from item 3, so the color is also different.  
-etc.  
thanks-
