th3rdwave / react-native-safe-area-context

A flexible way to handle safe area insets in JS. Also works on Android and Web!
MIT License
2.08k stars 191 forks source link

UIKeyboardDidShowNotification' is unavailable: not available on tvOS error in react-native-safe-area-context after React Native update #411

Closed mansilaad19 closed 12 months ago

mansilaad19 commented 12 months ago

Hello everyone,

I recently updated my React Native version from 0.69.8-2 to 0.71.11 and started encountering an error that I haven't been able to resolve. The error message is:

'UIKeyboardDidShowNotification' is unavailable: not available on tvOS

This error is coming from the react-native-safe-area-context package and it's preventing me from building my project in Xcode.

Here's the exact error message:

/repo/node_modules/react-native-safe-area-context/ios/RNCSafeAreaProvider.m:18:53 'UIKeyboardDidShowNotification' is unavailable: not available on tvOS

I've tried searching for solutions online but haven't found any discussions specifically related to this error. I'm hoping someone here might have encountered this issue before and can provide some guidance.

Here are some details about my environment:

React Native version: 0.71.11 react-native-safe-area-context version: (4.6.4) Xcode version: (Version 14.3.1 (14E300c)) Targeted platform: tvOS New Version 0.71.11

Old Version 0.69.8-2

Build Target(s) tvOS 16.3.2(20K672), Apple TV 4K (2nd generation)

Output of react-native info OS: macOS 13.4.1 CPU: (6) x64 Intel(R) Core(TM) i5-8500B CPU @ 3.00GHz Memory: 137.16 MB / 16.00 GB Shell: 5.9 - /bin/zsh Binaries: Node: 18.12.1 - /usr/local/bin/node Yarn: 1.22.19 - /usr/local/bin/yarn npm: 8.19.2 - /usr/local/bin/npm Watchman: Not Found Managers: CocoaPods: 1.12.1 - /usr/local/bin/pod SDKs: iOS SDK: Platforms: DriverKit 22.4, iOS 16.4, macOS 13.3, tvOS 16.4, watchOS 9.4 Android SDK: Not Found IDEs: Android Studio: 2022.2 AI-222.4459.24.2221.10121639 Xcode: 14.3.1/14E300c - /usr/bin/xcodebuild Languages: Java: 11.0.19 - /usr/bin/javac npmPackages: @react-native-community/cli: Not Found react: 18.2.0 => 18.2.0 react-native: Not Found react-native-macos: Not Found react-native-tvos: 0.71.11-0 npmGlobalPackages: react-native: Not Found

Any help would be greatly appreciated. Thank you in advance!