mod: avoiding some alerts from html renderer
This commit is contained in:
parent
3ed1a98d3a
commit
a825d738c4
|
@ -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} · </Text>}{subscriptions[post.feed_id].title}</Text>
|
||||
</View>
|
||||
<RenderHtml
|
||||
contentWidth={screenWidth}
|
||||
ignoredDomTags={['title']}
|
||||
source={{ html: post.content }}
|
||||
baseStyle={{
|
||||
fontSize: 18,
|
||||
|
|
Loading…
Reference in New Issue
Block a user