microsoft / react-native-windows

A framework for building native Windows apps with React.
https://microsoft.github.io/react-native-windows/
Other
16.39k stars 1.14k forks source link

[Fabric] Fix Modal position, disable input to parent hwnd, and add onShow event #14109

Closed TatianaKapos closed 1 week ago

TatianaKapos commented 1 week ago

Description

Fixes Modal Position to center in middle of application, disables input to parent hwnd, and add onShowEvent

Type of Change

Why

Resolves #13765 Resolves #13159 Resolves #14064 Default positioning for #14068

What

Calculates the modal position based on parent RECT and dispatches onShow event.

Uses EnableWindow to disable input to parent hwnd but let me know if there's a better API to use!

Screenshots

Playground-composition_iGcNZFw4sS

Testing

Tested locally

Changelog

yes

Implements onShow event for Modal and fixes positioning

Microsoft Reviewers: Open in CodeFlow