mirror of
https://github.com/tooot-app/app
synced 2025-06-05 22:19:13 +02:00
Fix Android bugs
This commit is contained in:
@ -49,10 +49,10 @@ const ParseHTML: React.FC<Props> = ({
|
|||||||
StyleConstants.Font.Size[size],
|
StyleConstants.Font.Size[size],
|
||||||
adaptiveSize ? adaptiveFontsize : 0
|
adaptiveSize ? adaptiveFontsize : 0
|
||||||
)
|
)
|
||||||
const adaptedLineheight = adaptiveScale(
|
const adaptedLineheight =
|
||||||
StyleConstants.Font.LineHeight[size],
|
Platform.OS === 'ios'
|
||||||
adaptiveSize ? adaptiveFontsize : 0
|
? adaptiveScale(StyleConstants.Font.LineHeight[size], adaptiveSize ? adaptiveFontsize : 0)
|
||||||
)
|
: undefined
|
||||||
|
|
||||||
const navigation = useNavigation<StackNavigationProp<TabLocalStackParamList>>()
|
const navigation = useNavigation<StackNavigationProp<TabLocalStackParamList>>()
|
||||||
const { params } = useRoute()
|
const { params } = useRoute()
|
||||||
@ -203,7 +203,10 @@ const ParseHTML: React.FC<Props> = ({
|
|||||||
break
|
break
|
||||||
case 'br':
|
case 'br':
|
||||||
return (
|
return (
|
||||||
<Text key={index} style={{ lineHeight: adaptedLineheight / 2 }}>
|
<Text
|
||||||
|
key={index}
|
||||||
|
style={{ lineHeight: adaptedLineheight ? adaptedLineheight / 2 : undefined }}
|
||||||
|
>
|
||||||
{'\n'}
|
{'\n'}
|
||||||
</Text>
|
</Text>
|
||||||
)
|
)
|
||||||
@ -212,7 +215,11 @@ const ParseHTML: React.FC<Props> = ({
|
|||||||
return (
|
return (
|
||||||
<Text key={index}>
|
<Text key={index}>
|
||||||
{node.children.map((c, i) => renderNode(c, i))}
|
{node.children.map((c, i) => renderNode(c, i))}
|
||||||
<Text style={{ lineHeight: adaptedLineheight / 2 }}>{'\n\n'}</Text>
|
<Text
|
||||||
|
style={{ lineHeight: adaptedLineheight ? adaptedLineheight / 2 : undefined }}
|
||||||
|
>
|
||||||
|
{'\n\n'}
|
||||||
|
</Text>
|
||||||
</Text>
|
</Text>
|
||||||
)
|
)
|
||||||
} else {
|
} else {
|
||||||
|
@ -114,7 +114,12 @@ const Timeline: React.FC<Props> = ({
|
|||||||
colors={[colors.primaryDefault]}
|
colors={[colors.primaryDefault]}
|
||||||
progressBackgroundColor={colors.backgroundDefault}
|
progressBackgroundColor={colors.backgroundDefault}
|
||||||
refreshing={isFetching || isLoading}
|
refreshing={isFetching || isLoading}
|
||||||
onRefresh={() => refetch()}
|
onRefresh={() => {
|
||||||
|
if (readMarker) {
|
||||||
|
setAccountStorage([{ key: readMarker, value: undefined }])
|
||||||
|
}
|
||||||
|
refetch()
|
||||||
|
}}
|
||||||
/>
|
/>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user