Fakultas Ilmu Komputer UI

EcosystemStack.ts 761 Bytes
Newer Older
1
2
3
4
5
/**
 * Learn more about using TypeScript with React Navigation:
 * https://reactnavigation.org/docs/typescript/
 */
import { NativeStackScreenProps } from "@react-navigation/native-stack";
6
import { IEcosystem } from "../firestore/ecosystems";
7
8
9
10
11
12
13
14
15

export type EcosystemStackParamList = {
  BusinessEcosystem: undefined;
  CreateEcosystem: undefined;
  BusinessCategory: undefined;
  EcosystemList: { headerTitle: string };
  EcosystemMap: undefined;
  BusinessList: { headerTitle: string };
  EcosystemDetails: { headerTitle: string };
16
  Recommended: { headerTitle: string; toFetch: () => Promise<IEcosystem[]> };
17
18
19
20
21
};

export type EcosystemStackScreenProps<
  Screen extends keyof EcosystemStackParamList
> = NativeStackScreenProps<EcosystemStackParamList, Screen>;