Skip to content

[iOS] App Freeze regression when using PagerView nested with native-stack #3466

@gabemeola

Description

@gabemeola

Description

When nesting a Stack.Navigator (@react-navigation/native-stack) all application touches are disable (full app freeze). I confirmed this wasn't a react-navigation or a react-native-pager-view regression.

iOS logs this warning when the issue occurs. Android works fine.

Unexpected nil window in latent system gesture client update: windowServerHitTestWindow: <UIWindow: 0x10760f620; frame = (0 0; 402 874); userInteractionEnabled = NO; gestureRecognizers = <NSArray: 0x600000d3d1d0>; layer = <UIWindowLayer: 0x600001723e80>>, touch: <UITouch: 0x16d664690> type: Direct; phase: Stationary; is pointer: NO; tap count: 1; force: 0.000; window: (null); responder: (null);

Confirmed breaking starting at version 4.17.0 to 4.18.0

Downgrading to 4.16.0 fixes the issue.

Related commits:

Steps to reproduce

import PagerView from 'react-native-pager-view';
import { createNativeStackNavigator } from '@react-navigation/native-stack';

const Stack = createNativeStackNavigator();

function App() {
  <PagerView>
    <View key="0">
      <Text>This Works</Text>
    </View>
    <View key="1">
       <NavigationContainer>
          <Stack.Navigator>
            <Stack.Screen  component={() => <Text>Test</Text>} />
          </Stack.Navigator>
       </NavigationContainer>
    </View>
  </PagerView>
}

Snack or a link to a repository

todo

Screens version

4.18.0

React Native version

0.81.5

Platforms

iOS

JavaScript runtime

None

Workflow

None

Architecture

Fabric (New Architecture)

Build type

None

Device

Real device

Device model

iOS 26, including MacOS Catalyst

Acknowledgements

Yes

Metadata

Metadata

Assignees

Labels

Missing reproThis issue need minimum repro scenarioPlatform: iOSThis issue is specific to iOS

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions