import React, { useEffect } from 'react'; import { ScrollView } from 'react-native'; import I18n from '../i18n'; import { isIOS } from '../utils/deviceInfo'; import { useTheme } from '../theme'; import { ChatsStackParamList } from '../stacks/types'; import { IBaseScreen } from '../definitions'; type IMarkdownTableViewProps = IBaseScreen; const MarkdownTableView = ({ navigation, route }: IMarkdownTableViewProps): React.ReactElement => { const renderRows = route.params?.renderRows; const tableWidth = route.params?.tableWidth; const { colors } = useTheme(); useEffect(() => { navigation.setOptions({ title: I18n.t('Table') }); }, []); if (isIOS) { return ( {renderRows()} ); } return ( {renderRows()} ); }; export default MarkdownTableView;