import { StackNavigationProp } from "@react-navigation/stack"; import React from "react"; import { StyleSheet, TouchableOpacity, View } from "react-native"; import sampleSessionImage from "../../assets/sample_session.png"; import SessionCard from "../../component/session-card/session-card"; // Define the types for your navigation stack type SessionStackParamList = { Session: undefined; // Add other screens as needed }; type SessionFeedNavigationProp = StackNavigationProp< SessionStackParamList, "Session" >; // Define the props for SessionFeed component interface SessionFeedProps { navigation: SessionFeedNavigationProp; } const SessionFeed: React.FC = ({ navigation }) => { return ( navigation.push("Session")}> ); }; const styles = StyleSheet.create({ container: { flex: 1, backgroundColor: "#f0f0f0", // Light gray background alignItems: "center", }, }); export default SessionFeed;