1
0
mirror of https://github.com/tooot-app/app synced 2025-06-05 22:19:13 +02:00

Hide header bottom shadow

This commit is contained in:
Zhiyuan Zheng
2020-12-25 21:51:46 +01:00
parent 087f50577f
commit 9d1c366eda
9 changed files with 23 additions and 12 deletions

View File

@ -67,7 +67,7 @@ const Timelines: React.FC<Props> = ({ name, content }) => {
)
return (
<Stack.Navigator>
<Stack.Navigator screenOptions={{ headerHideShadow: true }}>
<Stack.Screen
name={name}
options={{

View File

@ -133,9 +133,9 @@ const Timeline: React.FC<Props> = ({
() => <TimelineEmpty status={status} refetch={refetch} />,
[status]
)
const onEndReached = useCallback(() => fetchNextPage(), [])
const onEndReached = useCallback(() => !disableRefresh && fetchNextPage(), [])
const ListFooterComponent = useCallback(
() => <TimelineEnd hasNextPage={hasNextPage} />,
() => <TimelineEnd hasNextPage={!disableRefresh ? hasNextPage : false} />,
[hasNextPage]
)
const refreshControl = useMemo(