microsoft / microsoft/react-native-windows
AlertModule::showAlert crashes in Xaml Islands
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 17.3k
- Forks
- 1.2k
- Avg merge
- 1d 13h
- Merged PRs (30d)
- 33
Description
Environment
- Target Platform Version(s): 10.0.18362
- Target Device(s): Desktop
- Visual Studio Version: Visual Studio 2019
- Build Configuration: Release
Steps to Reproduce
- Open packages\playground\windows\playground-win32.sln
- Hit F5 (Build solution & start debugging)
- Press CTRL+O (File->Open)
- Select "Samples\rntester" & click "OK"
- Click on "<Button>\nSimple React Native button component"
- Click on the button labeled "Press Me"
Expected Behavior
A ContentDialog would pop up.
Actual Behavior
Playground Win32 crashes The problem appears to be related to Xaml Islands; the ContentDialog needs to be told what XamlRoot to use, but the AlertModule has no context to use to find a root.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Open packages\playground\windows\playground-win32.sln and reproduce the crash using the listed File->Open and button steps. Trace AlertModule::showAlert and the Xaml Islands ContentDialog path, focusing on how a XamlRoot can be obtained. Done means the same interaction shows the expected ContentDialog without crashing on the stated Windows target.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp, react-native
- Domain
- desktop, frontend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100