import React from 'react'; import { SafeAreaView, StyleSheet, ScrollView, View, Text, StatusBar, FlatList, TouchableOpacity } from 'react-native'; import { Header, LearnMoreLinks, Colors, DebugInstructions, ReloadInstructions, } from 'react-native/Libraries/NewAppScreen'; import { NavigationContainer } from '@react-navigation/native' import { createStackNavigator } from '@react-navigation/stack' import styles from './styles/morestyles' import Announcements, {TeacherList} from './Announcements' import Resources from './Resources' import StudentWeek from './StudentWeek' import SSLOps, {SSLInfo} from './SSLOps' import LunchEvents, {LunchInfo} from './LunchEvents' import ChallengeWeek from './ChallengeWeek' import { LinearGradient } from 'react-native-linear-gradient' const Stack = createStackNavigator() class MoreSwitch extends React.Component { constructor(props) { super(props) this.props = props } render() { return ( this.props.navigation.navigate(item.key)}> {item.name} } /> ) } } class More extends React.Component { render() { return ( ({ headerTitleStyle:[styles.headerTitle,{alignSelf:'center'}], title:route.params.name, headerRight:()=>(<>) })} /> ({ headerTitleStyle:[styles.headerTitle,{alignSelf:'center'}], title:route.params.name, headerRight:()=>(<>) })} /> ({ headerTitleStyle:[styles.headerTitle,{alignSelf:'center'}], title:route.params.name, headerRight:()=>(<>) })} /> ) } } export default More;