<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/keeping-screens-visible-with-activity-mode-hidden--ngpntlntj" -->

---
title: Keeping Screens Visible With <Activity mode="hidden">
description: React Navigation 8 plans to use React's <Activity mode="hidden"> to unmount effects on inactive screens for better performance. However, this also hides...
canonical: https://daily.dev/posts/keeping-screens-visible-with-activity-mode-hidden--ngpntlntj
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Keeping Screens Visible With <Activity mode="hidden"> | daily.dev
og:description: React Navigation 8 plans to use React's <Activity mode="hidden"> to unmount effects on inactive screens for better performance. However, this also hides...
og:url: https://daily.dev/posts/keeping-screens-visible-with-activity-mode-hidden--ngpntlntj
og:image: https://api.daily.dev/og/posts/nGPNtLntJ.png
og:image:alt: Keeping Screens Visible With <Activity mode="hidden">
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Keeping Screens Visible With <Activity mode="hidden">

**[Callstack Blog](https://daily.dev/sources/callstack-blog)** · 6 min read · 0 upvotes · 0 comments

## Summary

React Navigation 8 plans to use React's <Activity mode="hidden"> to unmount effects on inactive screens for better performance. However, this also hides content via display:none, causing blank screen flashes during swipe-back gestures. The post details a cross-platform workaround: on native (Android/iOS), a custom view using NativeComponentRegistry overrides the style's process function to always return 'contents' instead of 'none'; on web, a MutationObserver watches for style attribute changes and immediately resets display to 'contents'. Both approaches preserve the effect-unmounting benefit while keeping screens visually rendered during navigation transitions.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://www.callstack.com/blog/keeping-screens-visible-with-activity-mode-hidden>

## Similar posts on daily.dev

- [React Navigation 8.0 Alpha with Native Bottom Tabs, Reworked TypeScript Inference and History](https://daily.dev/posts/react-navigation-8-0-alpha-with-native-bottom-tabs-reworked-typescript-inference-and-history-baby9kbnm) · InfoQ · 6 upvotes · 1 comments
- [React Navigation 8.0 - July Progress Report](https://daily.dev/posts/react-navigation-8-0---july-progress-report-zwpb6nosh) · React Navigation · 7 upvotes · 2 comments
- [The React Native Live Activities Handbook: How to Build iOS Live Activities and Android 16 Live Updates](https://daily.dev/posts/the-react-native-live-activities-handbook-how-to-build-ios-live-activities-and-android-16-live-upda-zpnvakxef) · freeCodeCamp · 1 upvotes · 0 comments

---

Tags: [#javascript](https://daily.dev/tags/javascript), [#react](https://daily.dev/tags/react), [#performance](https://daily.dev/tags/performance), [#react-native](https://daily.dev/tags/react-native)

[View this post on daily.dev](https://daily.dev/posts/keeping-screens-visible-with-activity-mode-hidden--ngpntlntj)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Keeping Screens Visible With \u003cActivity mode=\"hidden\"\u003e","url":"https://daily.dev/posts/keeping-screens-visible-with-activity-mode-hidden--ngpntlntj","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/keeping-screens-visible-with-activity-mode-hidden--ngpntlntj"},"datePublished":"2026-03-22T11:30:51.592Z","dateModified":"2026-03-22T11:32:07.550Z","description":"React Navigation 8 plans to use React's \u003cActivity mode=\"hidden\"\u003e to unmount effects on inactive screens for better performance. However, this also hides...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/49d61aa449e0136d6b73e7b6042ad2cf?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/49d61aa449e0136d6b73e7b6042ad2cf?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"Callstack Blog","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Callstack Blog","logo":"https://media.daily.dev/image/upload/s--3qItoroi--/f_auto,q_auto/v1774179048/logos/callstack-blog?_a=BAMAMiWQ0","url":"https://daily.dev/sources/callstack-blog"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/keeping-screens-visible-with-activity-mode-hidden--ngpntlntj","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"javascript,react,performance,react-native","timeRequired":"PT6M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Callstack Blog","item":"https://daily.dev/sources/callstack-blog"},{"@type":"ListItem","position":3,"name":"Keeping Screens Visible With \u003cActivity mode=\"hidden\"\u003e"}]}
```

