Improve reliability of screen titles
This commit is contained in:
parent
b2160ae159
commit
a3bca154c4
16 changed files with 60 additions and 37 deletions
|
@ -12,6 +12,7 @@ import {ScreenParams} from '../routes'
|
|||
import {s, colors} from '../lib/styles'
|
||||
|
||||
export const Home = observer(function Home({
|
||||
navIdx,
|
||||
visible,
|
||||
scrollElRef,
|
||||
}: ScreenParams) {
|
||||
|
@ -51,7 +52,7 @@ export const Home = observer(function Home({
|
|||
console.log('Updating home feed')
|
||||
defaultFeedView.update()
|
||||
} else {
|
||||
store.nav.setTitle('Home')
|
||||
store.nav.setTitle(navIdx, 'Home')
|
||||
console.log('Fetching home feed')
|
||||
defaultFeedView.setup().then(() => {
|
||||
if (aborted) return
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue