/** * Learn more about using TypeScript with React Navigation: * https://reactnavigation.org/docs/typescript/ */ import { NativeStackScreenProps } from "@react-navigation/native-stack"; import { IEcosystem } from "../firestore/ecosystems"; export type EcosystemStackParamList = { BusinessEcosystem: undefined; CreateEcosystem: undefined; BusinessCategory: undefined; EcosystemList: { headerTitle: string }; EcosystemMap: undefined; BusinessList: { headerTitle: string }; EcosystemDetails: { headerTitle: string }; Recommended: { headerTitle: string; toFetch: () => Promise }; }; export type EcosystemStackScreenProps< Screen extends keyof EcosystemStackParamList > = NativeStackScreenProps;