import { KaTeX as KaTeXProps } from '@rocket.chat/message-parser'; import React from 'react'; import { StyleProp, ViewStyle } from 'react-native'; import Katex from 'react-native-katex'; // eslint-disable-next-line import/no-unresolved import MathView, { MathText } from 'react-native-math-view'; import { isAndroid } from '../../../lib/methods/helpers'; import { useTheme } from '../../../theme'; import { DEFAULT_MESSAGE_HEIGHT } from '../../message/utils'; interface IKaTeXProps { value: KaTeXProps['value']; } export const KaTeX = ({ value }: IKaTeXProps): React.ReactElement | null => { const { colors } = useTheme(); const fixAndroidWebviewCrashStyle: StyleProp = isAndroid ? { opacity: 0.99, overflow: 'hidden' } : {}; return ( ( )} /> ); }; export const InlineKaTeX = ({ value }: IKaTeXProps): React.ReactElement | null => { const { colors } = useTheme(); return ; };