The reason for this error is because in that SDK version, the project is configured to use expo-router instead of navigation. Expo-router is built on top of navigation. That's why the NavigationContainer nesting is created.