I have a list of items which i want to pass navigation to it using react native navigation, here is my main code,
import React from 'react'
import { StyleSheet, Text, View, TouchableOpacity, ScrollView, Image } from 'react-native'
import ItemComponent from './ItemComponent'
const ItemDescription = ({navigation}) => {
return (
<View style={styles.container}>
<ScrollView style={{marginBottom: '15%'}}>
<ItemComponent title='Shirts'
imageSource={require('../Screen/Images/Shirt.png')}
/>
<ItemComponent title="T-Shirt"
imageSource={require('../Screen/Images/t-shirt.png')}
/>
</ScrollView>
</View>
)
}
Which part of the code do I need to use navigation and how do I pass any props on it?