import React, { useEffect, FunctionComponent, useContext } from 'react'; import { View, ViewStyle, ListRenderItemInfo } from 'react-native'; import styles from './PixelTopicsListScreenStyles'; import usePixelTopicsListScreenTranslation from './PixelTopicsListScreenTranslation' import { PixelStyles } from 'react-native-pixel-styles'; import { PixelwolfFlatlistScreen, PixelwolfText, PixelwolfDivider } from 'react-native-pixel-components'; import { topicStoreContext } from '../../Store/TopicStore'; import { PixelTopicButton } from '../../Components/PixelTopicButton/PixelTopicButton'; import { PixelTopic } from '../../Model/PixelTopic'; import { PixelForum } from '../../Model/PixelForum'; import { ForumBadge } from '../../Components/ForumBadge/ForumBadge'; interface IProps { // Props type definition style?: ViewStyle | ViewStyle[] } interface IState { // State type definition } export const PixelTopicsListScreen: FunctionComponent = (props) => { const { I18n } = usePixelTopicsListScreenTranslation() const themeStore = useContext(PixelStyles.pixelThemeStoreContext) const topicStore = useContext(topicStoreContext) // @ts-ignore const forum: PixelForum = props.route.params.forum const initialState: IState = { }; // ComponentDidMount useEffect(() => { return () => { //ComponentDidUnmount } }, []) const renderTopic = (item: ListRenderItemInfo) => { return } const renderPlaceholder = () => { return } const renderHeader = () => { return {forum.description} } return ( ); };