From ef3f863d84e21519e2729506a65a4436ef7edf98 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Oskar=20Kwa=C5=9Bniewski?= Date: Wed, 26 Jun 2024 17:25:37 +0200 Subject: [PATCH] fix: react-native-screens not building on visionOS (#2210) ## Description This PR fixes React Native screens not building on visionOS. As this platform needs explicit imports for used modules ## Changes - Fixed building `RNSConvert.h` for visionOS ## Test code and steps to reproduce Compile on visionOS ## Checklist - [ ] Included code example that can be used to test this change - [ ] Updated TS types - [ ] Updated documentation: - [ ] 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 --- ios/RNSConvert.h | 1 + 1 file changed, 1 insertion(+) diff --git a/ios/RNSConvert.h b/ios/RNSConvert.h index 7f816553c3..53a130bcdf 100644 --- a/ios/RNSConvert.h +++ b/ios/RNSConvert.h @@ -1,4 +1,5 @@ #ifdef RCT_NEW_ARCH_ENABLED +#import #import #import "RNSEnums.h"