mod: avoiding some alerts from html renderer

This commit is contained in:
Astrian Zheng 2025-07-01 10:53:37 +10:00
parent 3ed1a98d3a
commit a825d738c4
Signed by: Astrian
SSH Key Fingerprint: SHA256:rVnhx3DAKjujCwWE13aDl7uV6+9U1MvydLkNRXJrBiA

View File

@ -1,4 +1,4 @@
import { Text, View, StyleSheet, ScrollView } from 'react-native'
import { Text, View, StyleSheet, ScrollView, useWindowDimensions } from 'react-native'
import { useLocalSearchParams } from 'expo-router'
import axios from 'axios'
import { useAuthStore, useSubscription } from '../store'
@ -14,6 +14,8 @@ export default() => {
const { subscriptions } = useSubscription()
const { width: screenWidth } = useWindowDimensions()
useEffect(() => {
fetchPost()
}, [])
@ -54,6 +56,8 @@ export default() => {
<Text style={styles.metadata}>{post.author && <Text>{post.author} &middot; </Text>}{subscriptions[post.feed_id].title}</Text>
</View>
<RenderHtml
contentWidth={screenWidth}
ignoredDomTags={['title']}
source={{ html: post.content }}
baseStyle={{
fontSize: 18,