The earning Item component is used for the Order History page in the application. It renders a single order item that has its own details available on click.

To use earning item, please view below props that are needed to construct one:
amountPaid - earnings generated by a driver
invoiceNumber - invoice number connected to order
name - ordered by name
description - order description
date - date transaction happened
imageComponent - image component that should be displayed on the leftmost side of an item
imagePath - image URL that should display the image
onPress - function that should execute on Press of an item
Example:
<EarningItem
key={'order_history_item_1'}
imagePath={'www.someImage.com/path'}
date={'01/20/2020'}
amountPaid={240}
name={'Laura Cliford'}
description={'Amount Description Goes here'}
invoiceNumber={'12345sdfy76'}
isCompleted={true}
onPress={() => navigation.navigate(Routes.OrderDetailScreen)}
/>
src/screens/OrderHistoryModule/OrderDetailScreen/OrderDetailScreen.js