import React from "react"; import PropTypes from "prop-types"; import { Portal, } from "react-native-paper"; import { createStackNavigator } from "@react-navigation/stack"; import HomeScreen from "./timetable/HomeScreen"; import AddEntry from "./timetable/AddEntry"; const Stack = createStackNavigator(); export default function Timetable({ timetable, subjects }) { const days = ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"]; return ( {(props) => ( )} {days.map((day, idx) => ( {(props) => ( )} ))} ); } Timetable.propTypes = { timetable: PropTypes.array, subjects: PropTypes.array, addTimetableEntry: PropTypes.func, removeTimetableEntry: PropTypes.func, };