This component displays a list of products fetched from an API.
It utilizes the useFocusEffect hook to reload products when the component is focused.
Products are displayed using a FlatList component from react-native.
Each product item is rendered as a Pressable component, which navigates to a product
specification view on press.
The component also handles loading states and displays a LoadingIndicator component while
products are being fetched.
ProductList component.
This component displays a list of products fetched from an API. It utilizes the
useFocusEffecthook to reload products when the component is focused. Products are displayed using aFlatListcomponent fromreact-native. Each product item is rendered as aPressablecomponent, which navigates to a product specification view on press.The component also handles loading states and displays a
LoadingIndicatorcomponent while products are being fetched.