about summary refs log tree commit diff
path: root/src/Navigation.tsx
diff options
context:
space:
mode:
authorPaul Frazee <pfrazee@gmail.com>2023-08-03 10:25:17 -0700
committerGitHub <noreply@github.com>2023-08-03 10:25:17 -0700
commit96280d5f1a24620fd12aa178027a12d81c052a34 (patch)
treedc8d4b04319383a9cddcf8a27213f29d98e878a1 /src/Navigation.tsx
parent1211c353d0ef67f7a2d97e819dac488b14b73a08 (diff)
downloadvoidsky-96280d5f1a24620fd12aa178027a12d81c052a34.tar.zst
Improve the profile preview with "swipe up to view" and local cache optimization (#1096)
* Update the ProfilePreview to use a swipe-up to navigate

* Use the profile cache to optimize load performance

* Hack to align the header in the profile preview against the screen view

* Fix profiles cache logic to ensure cache is used

* Fix dark mode on profile preview
Diffstat (limited to 'src/Navigation.tsx')
-rw-r--r--src/Navigation.tsx5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/Navigation.tsx b/src/Navigation.tsx
index 06cce0f00..48bab182d 100644
--- a/src/Navigation.tsx
+++ b/src/Navigation.tsx
@@ -125,7 +125,10 @@ function commonScreens(Stack: typeof HomeTab, unreadCountLabel?: string) {
       <Stack.Screen
         name="Profile"
         component={ProfileScreen}
-        options={({route}) => ({title: title(`@${route.params.name}`)})}
+        options={({route}) => ({
+          title: title(`@${route.params.name}`),
+          animation: 'none',
+        })}
       />
       <Stack.Screen
         name="ProfileFollowers"