Abstraction Occurrence Pattern

Creating multiple components that mostly share the same properties.

In our application, we often create similar components.

A good example would be rendering "food items" in a FlatList

Each "food item" is a component, with the following information:

  • title

  • calories

To achieve this, we created a component titled FoodItem, which is repeatedly used by the FlatList to create new components on the user's screen.

We made use of this design pattern in other parts of our application, and have collated a collection of such components in this folder.

Last updated