about summary refs log tree commit diff
path: root/src/view/screens/Contacts.tsx
diff options
context:
space:
mode:
authorPaul Frazee <pfrazee@gmail.com>2022-11-17 16:01:29 -0600
committerPaul Frazee <pfrazee@gmail.com>2022-11-17 16:01:29 -0600
commita3bca154c4d8c0c0c42d56d61b2ab2188204710e (patch)
tree56d9eb9be13cf368b9fe2a2845919ae09774526b /src/view/screens/Contacts.tsx
parentb2160ae15952baf19d7375db2de77ce8d969b44d (diff)
downloadvoidsky-a3bca154c4d8c0c0c42d56d61b2ab2188204710e.tar.zst
Improve reliability of screen titles
Diffstat (limited to 'src/view/screens/Contacts.tsx')
-rw-r--r--src/view/screens/Contacts.tsx4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/view/screens/Contacts.tsx b/src/view/screens/Contacts.tsx
index 65c933b38..c0e265ca7 100644
--- a/src/view/screens/Contacts.tsx
+++ b/src/view/screens/Contacts.tsx
@@ -8,13 +8,13 @@ import {colors} from '../lib/styles'
 import {ScreenParams} from '../routes'
 import {useStores} from '../../state'
 
-export const Contacts = ({visible, params}: ScreenParams) => {
+export const Contacts = ({navIdx, visible, params}: ScreenParams) => {
   const store = useStores()
   const selectorInterp = useSharedValue(0)
 
   useEffect(() => {
     if (visible) {
-      store.nav.setTitle(`Contacts`)
+      store.nav.setTitle(navIdx, `Contacts`)
     }
   }, [store, visible])