jgkim / react-native-status-bar-size

Watch and respond to changes in the iOS status bar height
https://www.npmjs.com/package/react-native-status-bar-size
125 stars 33 forks source link

Not compatible with RN>=0.66 #23

Open a-tokyo opened 2 years ago

a-tokyo commented 2 years ago

When using RN >= 0.66 this error is thrown:

Invariant Violation: StatusBarIOS has been removed from React Native. Has been merged with StatusBar. See https://reactnative.dev/docs/statusbar

react-native-status-bar-size uses StatusBarIOS in the addListener function

Update: – I attempted working on a fix but I couldn't since I am blocked RN migrating the StatusBarIOS events to StatusBar – Related issue https://github.com/facebook/react-native/issues/32297

a-tokyo commented 2 years ago

Update: Fix PR: https://github.com/jgkim/react-native-status-bar-size/pull/22