Fakultas Ilmu Komputer UI

RecommendedEcosystemScreen.tsx 1.1 KB
Newer Older
1
import React, { useEffect } from "react";
2
import { StyleSheet } from "react-native";
3
4
5
import { Text, View } from "../../components/Themed";
import Colors from "../../constants/Colors";
import { EcosystemStackScreenProps } from "../../types/navigation";
6
import { LogBox } from "react-native";
7
8
9
10
11
12

const RecommendedEcosystemScreen = ({
  route,
}: EcosystemStackScreenProps<"Recommended">) => {
  const { toFetch } = route.params;

13
14
15
16
17
18
19
20
21
22
23
24
25
26
  useEffect(() => {
    switch (toFetch) {
      case "popular":
        break;
      case "myEcosystem":
        break;
      case "mostRecent":
        break;
      case "joined":
        break;
      default:
        break;
    }
  }, []);
27
28
29
30
31

  LogBox.ignoreLogs([
    "Non-serializable values were found in the navigation state",
  ]);

32
33
34
  return (
    <View style={styles.container}>
      <View>
35
        <Text>Layar Rekomendasi Ekosistem</Text>
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
      </View>
    </View>
  );
};

const styles = StyleSheet.create({
  container: {
    flex: 1,
    backgroundColor: Colors.background,
    paddingHorizontal: 24,
    justifyContent: "center",
  },
});

export default RecommendedEcosystemScreen;