docs issue activityState can't be 1?
See original GitHub issueAccording to the documentation the <Screen /> component can have an activityState of 0, 1 or 2.
“When activityState is set to 0, the parent container will detach its views from the native view hierarchy. When activityState is set to 1, the Screen will stay attached, but on iOS it will not respond to touches. We only want to set activityState to 1 for during the transition or e.g. for modal presentation, where the previous screen should be visible, but not interactive. When activityState is set to 2, the views will be attached and will respond to touches as long as the parent container is attached too.”
But when I look in the source code this is the style being applied to the parent <View />
<View
style={[
style,
ENABLE_SCREENS && enabled && activityState !== 2
? { display: 'none' }
: null,
]}
{...rest}
/>
So it seems like there’s a mistake in the docs, or have I misunderstood something?
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (3 by maintainers)

Top Related StackOverflow Question
Thx I think can be closed 😃
The code in
index.tsxhas been changed to properly behave withactivityState. It will now only detach the screen if theactivityState === 0. As I mentioned before, since there isindex.native.tsx, theindex.tsxwas only used on web, butreact-navigationhad its own implementation there. Sincereact-navigationv6, this file will probably be used. Can I help you any more with this or can I close this issue @wedelgaard ?