Repository: react-native
Issue: [iOS] Navigation Bar Size Issue with codegenNativeComponent and modalPresentationStyle: .pageSheet in React Native
Labels: Component: Modal,Needs: Triage :mag:,Type: New Architecture

### Description

In a React Native environment, I'm using `codegenNativeComponent` to display a native screen. On this native screen, when I present a new screen with `modalPresentationStyle` set to `.pageSheet`, the navigation bar size becomes abnormal. **Although this might appear to be an issue with the native side because I’m using native screens, I don’t experience this problem when presenting a modal with .pageSheet without React Native.**

### Steps to reproduce

1. Clone the repository: [RNPlayground](https://github.com/dp221125/RNPlayground).
2. Navigate to the RNPlayground/react-native-playground folder.
3. Run yarn install.
4. Return to the root directory and run pod install (or bundle install followed by bundle exec pod install if using Bundler).
5. Open RNPlayground.xcworkspace and build the project for an iPhone targeting iOS 16 or 17.
6. When the app launches, tap the "Show Detail" button displayed on the screen.

### React Native Version

0.76.1

### Affected Platforms

Runtime - iOS

### Areas

Other (please specify)

### Output of `npx react-native info`

```text
System:
  OS: macOS 14.7
  CPU: (10) arm64 Apple M1 Pro
  Memory: 227.33 MB / 32.00 GB
  Shell:
    version: "5.9"
    path: /bin/zsh
Binaries:
  Node:
    version: 20.17.0
    path: ~/.asdf/installs/nodejs/20.17.0/bin/node
  Yarn:
    version: 4.5.0
    path: ~/.asdf/installs/nodejs/20.17.0/bin/yarn
  npm:
    version: 10.8.2
    path: ~/.asdf/plugins/nodejs/shims/npm
  Watchman: Not Found
Managers:
  CocoaPods:
    version: 1.16.2
    path: /Users/seokho/.rbenv/shims/pod
SDKs:
  iOS SDK:
    Platforms:
      - DriverKit 24.0
      - iOS 18.0
      - macOS 15.0
      - tvOS 18.0
      - visionOS 2.0
      - watchOS 11.0
  Android SDK: Not Found
IDEs:
  Android Studio: 2022.2 AI-222.4459.24.2221.10121639
  Xcode:
    version: 16.0/16A242
    path: /usr/bin/xcodebuild
Languages:
  Java: Not Found
  Ruby:
    version: 3.1.3
    path: /Users/seokho/.rbenv/shims/ruby
npmPackages:
  "@react-native-community/cli":
    installed: 15.0.0
    wanted: 15.0.0
  react:
    installed: 18.3.1
    wanted: 18.3.1
  react-native:
    installed: 0.76.1
    wanted: 0.76.1
  react-native-macos: Not Found
npmGlobalPackages:
  "*react-native*": Not Found
Android:
  hermesEnabled: Not found
  newArchEnabled: Not found
iOS:
  hermesEnabled: true
  newArchEnabled: true
```


### Stacktrace or Logs

```text
Not a crash, not a failure, just a UI bug.
```


### Reproducer

https://github.com/dp221125/RNPlayground

### Screenshots and Videos

### React Native 

https://github.com/user-attachments/assets/39d5709e-ec54-416d-a16b-03674dbb89c9


### iOS Native (not using React Native)

https://github.com/user-attachments/assets/347ac1d7-6210-4117-8452-4a7206ac5df2

### ScreenShot
<img width="534" alt="image" src="https://github.com/user-attachments/assets/9bc98814-3f14-4af2-8952-a099a4425c46">