Fix: correctly set visible on screens
parent
8b584c8c09
commit
c6b137a153
|
@ -45,7 +45,6 @@ export const Home = observer(function Home({
|
||||||
let aborted = false
|
let aborted = false
|
||||||
const pollInterval = setInterval(() => doPoll(), 15e3)
|
const pollInterval = setInterval(() => doPoll(), 15e3)
|
||||||
if (!visible) {
|
if (!visible) {
|
||||||
console.log('hit')
|
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
if (hasSetup) {
|
if (hasSetup) {
|
||||||
|
|
|
@ -256,7 +256,7 @@ export const MobileShell: React.FC = observer(() => {
|
||||||
]}>
|
]}>
|
||||||
<Com
|
<Com
|
||||||
params={params}
|
params={params}
|
||||||
visible={true}
|
visible={current}
|
||||||
scrollElRef={current ? scrollElRef : undefined}
|
scrollElRef={current ? scrollElRef : undefined}
|
||||||
/>
|
/>
|
||||||
</Animated.View>
|
</Animated.View>
|
||||||
|
|
Loading…
Reference in New Issue