import React from 'react'; import { SafeAreaView, StyleSheet, ScrollView, View, Text, StatusBar, FlatList, TouchableOpacity, Image, } 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 Settings from './Settings' import Images from './Images' 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} } /> ) } } const background = () class More extends React.Component { render() { return ( background }} /> background }} /> background }} /> background }} /> background }} /> background }} /> background }} /> background }} /> ({ headerTitleStyle:[styles.headerTitle,{alignSelf:'center',fontSize:Math.min(24,24*23/route.params.name.length)}], title:route.params.name, headerRight:()=>(<>), headerBackground: ()=>background })} /> ({ headerTitleStyle:[styles.headerTitle,{alignSelf:'center',fontSize:Math.min(24,24*23/route.params.name.length)}], title:route.params.name, headerRight:()=>(<>), headerBackground: ()=>background })} /> ({ headerTitleStyle:[styles.headerTitle,{alignSelf:'center',fontSize:Math.min(24,24*23/route.params.name.length)}], title:route.params.name, headerBackground: ()=>background, headerRight:()=>(<>) })} /> ) } } export default More;