Skip to content

Commit

Permalink
fix: react-native-screens not building on visionOS (software-mansion#…
Browse files Browse the repository at this point in the history
…2210)

## Description

This PR fixes React Native screens not building on visionOS. As this
platform needs explicit imports for used modules

## Changes

<!--
Please describe things you've changed here, make a **high level**
overview, if change is simple you can omit this section.

For example:

- Updated `about.md` docs

-->

- Fixed building `RNSConvert.h` for visionOS

<!--

## Screenshots / GIFs

Here you can add screenshots / GIFs documenting your change.

You can add before / after section if you're changing some behavior.

### Before

### After

-->

## Test code and steps to reproduce

Compile on visionOS

<!--
Please include code that can be used to test this change and short
description how this example should work.
This snippet should be as minimal as possible and ready to be pasted
into editor (don't exclude exports or remove "not important" parts of
reproduction example)
-->

## Checklist

- [ ] Included code example that can be used to test this change
- [ ] Updated TS types
- [ ] Updated documentation: <!-- For adding new props to native-stack
-->
- [ ]
https://github.com/software-mansion/react-native-screens/blob/main/guides/GUIDE_FOR_LIBRARY_AUTHORS.md
- [ ]
https://github.com/software-mansion/react-native-screens/blob/main/native-stack/README.md
- [ ]
https://github.com/software-mansion/react-native-screens/blob/main/src/types.tsx
- [ ]
https://github.com/software-mansion/react-native-screens/blob/main/src/native-stack/types.tsx
- [ ] Ensured that CI passes

---------

Co-authored-by: Kacper Kafara <kacperkafara@gmail.com>
  • Loading branch information
2 people authored and ja1ns committed Oct 9, 2024
1 parent daa03c2 commit 5be5f38
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ios/RNSConvert.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#ifdef RCT_NEW_ARCH_ENABLED
#import <UIKit/UIKit.h>
#import <react/renderer/components/rnscreens/Props.h>
#import "RNSEnums.h"

Expand Down

0 comments on commit 5be5f38

Please sign in to comment.