import React from 'react'; import { SafeAreaView, StyleSheet, ScrollView, View, Text, StatusBar, FlatList, TouchableOpacity, Image, Dimensions } from 'react-native'; import { Header, LearnMoreLinks, Colors, DebugInstructions, ReloadInstructions, } from 'react-native/Libraries/NewAppScreen'; import { NavigationContainer } from '@react-navigation/native' import { createStackNavigator, HeaderBackButton } 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 Poll from './Poll' import Language from './Language' import LinearGradient from 'react-native-linear-gradient' import Ionicons from 'react-native-vector-icons/Ionicons'; import I18n from './i18n'; 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 SettingSwitch extends React.Component { constructor(props) { super(props) this.props = props } render() { return ( this.props.navigation.navigate(item.key)}> {I18n.t('settings.' + item.key)} } /> ) } } const background = () class More extends React.Component { render() { return ( background, headerTitleAlign: 'center' }} /> background, headerTitleAlign: 'center', headerBackTitleVisible:false, headerTintColor: 'black' }} /> background, headerTitleAlign: 'center', headerBackTitleVisible:false, headerTintColor: 'black' }} /> background, headerTitleAlign: 'center', headerBackTitleVisible:false, headerTintColor: 'black' }} /> background, headerTitleAlign: 'center', headerBackTitleVisible:false, headerTintColor: 'black' }} /> background, headerTitleAlign: 'center', headerBackTitleVisible:false, headerTintColor: 'black' }} /> background, headerTitleAlign: 'center', headerBackTitleVisible:false, headerTintColor: 'black' }} /> background, headerTitleAlign: 'center', headerBackTitleVisible:false, headerTintColor: 'black' }} /> background, headerBackTitleVisible:false, headerTintColor: 'black', headerTitleAlign: 'center' }} /> background, //headerLeft: null, headerBackTitleVisible:false, headerTintColor: 'black', headerTitleAlign: 'center' }} /> ({ headerTitleStyle:[styles.headerTitle], title:route.params.name, headerRight:()=>(<>), headerBackground: ()=>background, headerBackTitleVisible:false, headerTintColor: 'black', headerTitleAlign: 'center' //headerLeft: null, })} /> ) } } export default More;