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 { useLocalSearchParams } from 'expo-router'
|
||||||
import axios from 'axios'
|
import axios from 'axios'
|
||||||
import { useAuthStore, useSubscription } from '../store'
|
import { useAuthStore, useSubscription } from '../store'
|
||||||
|
@ -14,6 +14,8 @@ export default() => {
|
||||||
|
|
||||||
const { subscriptions } = useSubscription()
|
const { subscriptions } = useSubscription()
|
||||||
|
|
||||||
|
const { width: screenWidth } = useWindowDimensions()
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
fetchPost()
|
fetchPost()
|
||||||
}, [])
|
}, [])
|
||||||
|
@ -54,6 +56,8 @@ export default() => {
|
||||||
<Text style={styles.metadata}>{post.author && <Text>{post.author} · </Text>}{subscriptions[post.feed_id].title}</Text>
|
<Text style={styles.metadata}>{post.author && <Text>{post.author} · </Text>}{subscriptions[post.feed_id].title}</Text>
|
||||||
</View>
|
</View>
|
||||||
<RenderHtml
|
<RenderHtml
|
||||||
|
contentWidth={screenWidth}
|
||||||
|
ignoredDomTags={['title']}
|
||||||
source={{ html: post.content }}
|
source={{ html: post.content }}
|
||||||
baseStyle={{
|
baseStyle={{
|
||||||
fontSize: 18,
|
fontSize: 18,
|
||||||
|
|
Loading…
Reference in New Issue
Block a user