Skip to content

fix(Windows): fix building and crashing issues#2826

Merged
kligarski merged 8 commits intomainfrom
@kligarski/windows-support
Apr 4, 2025
Merged

fix(Windows): fix building and crashing issues#2826
kligarski merged 8 commits intomainfrom
@kligarski/windows-support

Conversation

@kligarski
Copy link
Copy Markdown
Contributor

@kligarski kligarski commented Apr 3, 2025

Description

Fixes problems with building and crashes in Windows apps. Some components are still WIP and we'll finish work on them in the future.

Resolves #2541.

Changes

  • add Windows-specific implementations of ScreenContentWrapper and ScreenFooter,
  • start work on stack header and subviews, searchbar, stack animations - these components are not implemented yet
  • change minimum version of WindowsTargetPlatform to match WinUI requirements,

Test code and steps to reproduce

Create new react-native-windows app with components from react-native-screens, build and run (it might be necessary to run npx react-native run-windows twice in order to install all required packages).

@kligarski kligarski marked this pull request as ready for review April 4, 2025 07:37
@kligarski kligarski requested a review from kkafar April 4, 2025 07:37
Copy link
Copy Markdown
Member

@kkafar kkafar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please also check which source files are required by metor by default (e.g. Screen.tsx or Screen.web.tsx)

Comment thread windows/RNScreens/ScreenStackHeaderConfig.cpp
Comment thread windows/RNScreens/ScreenStackHeaderConfigViewManager.cpp
Comment thread windows/RNScreens/ScreenStackHeaderSubview.cpp Outdated
Comment thread windows/RNScreens/ScreenStackHeaderSubview.cpp Outdated
Copy link
Copy Markdown
Member

@kkafar kkafar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Okay, so we need to get rid of unused code / code introduced only to simplify debug.

We need to check whether search bar has any functionality here.

Andddd, we'll what do we do later.

Comment thread windows/RNScreens/SearchBarViewManager.cpp
@kligarski
Copy link
Copy Markdown
Contributor Author

Please also check which source files are required by metor by default (e.g. Screen.tsx or Screen.web.tsx)

Windows apps use Screen.tsx.

@kligarski kligarski requested a review from kkafar April 4, 2025 11:16
Copy link
Copy Markdown
Member

@kkafar kkafar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's proceed.

@kligarski kligarski merged commit d6be7d4 into main Apr 4, 2025
4 of 5 checks passed
@kligarski kligarski deleted the @kligarski/windows-support branch April 4, 2025 11:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Native Stack is not working with react-native-windows@0.76

3 participants