mirror of
https://github.com/tooot-app/app
synced 2025-06-05 22:19:13 +02:00
Updates
This commit is contained in:
@ -74,7 +74,7 @@ const renderNode = ({
|
||||
)
|
||||
}
|
||||
} else {
|
||||
const domain = href.split(new RegExp(/:\/\/(.*?)\//))
|
||||
const domain = href.split(new RegExp(/:\/\/(.[^\/]+)/))
|
||||
return (
|
||||
<Text
|
||||
key={index}
|
||||
|
@ -19,7 +19,6 @@ export interface Props {
|
||||
toot?: Mastodon.Status
|
||||
account?: string
|
||||
disableRefresh?: boolean
|
||||
scrollEnabled?: boolean
|
||||
}
|
||||
|
||||
const Timeline: React.FC<Props> = ({
|
||||
@ -28,8 +27,7 @@ const Timeline: React.FC<Props> = ({
|
||||
list,
|
||||
toot,
|
||||
account,
|
||||
disableRefresh = false,
|
||||
scrollEnabled = true
|
||||
disableRefresh = false
|
||||
}) => {
|
||||
setFocusHandler(handleFocus => {
|
||||
const handleAppStateChange = (appState: string) => {
|
||||
@ -160,7 +158,6 @@ const Timeline: React.FC<Props> = ({
|
||||
renderItem={flRenderItem}
|
||||
onEndReached={flOnEndReach}
|
||||
keyExtractor={flKeyExtrator}
|
||||
scrollEnabled={scrollEnabled} // For timeline in Account view
|
||||
ListFooterComponent={flFooter}
|
||||
ListEmptyComponent={flItemEmptyComponent}
|
||||
ItemSeparatorComponent={flItemSeparatorComponent}
|
||||
|
@ -44,7 +44,7 @@ const TimelineDefault: React.FC<Props> = ({
|
||||
const tootOnPress = useCallback(
|
||||
() =>
|
||||
!isRemotePublic &&
|
||||
navigation.navigate('Screen-Shared-Toot', {
|
||||
navigation.push('Screen-Shared-Toot', {
|
||||
toot: actualStatus
|
||||
}),
|
||||
[]
|
||||
|
@ -1,7 +1,7 @@
|
||||
import React, { useCallback } from 'react'
|
||||
import { Image, Pressable, StyleSheet } from 'react-native'
|
||||
import { useNavigation } from '@react-navigation/native'
|
||||
import { StyleConstants } from '@utils/styles/constants'
|
||||
import { useNavigation } from '@react-navigation/native'
|
||||
|
||||
export interface Props {
|
||||
queryKey?: App.QueryKey
|
||||
@ -13,7 +13,7 @@ const TimelineAvatar: React.FC<Props> = ({ queryKey, account }) => {
|
||||
// Need to fix go back root
|
||||
const onPress = useCallback(() => {
|
||||
queryKey &&
|
||||
navigation.navigate('Screen-Shared-Account', {
|
||||
navigation.push('Screen-Shared-Account', {
|
||||
id: account.id
|
||||
})
|
||||
}, [])
|
||||
|
Reference in New Issue
Block a user