miyabi / react-native-safe-area

React Native module to retrieve safe area insets for iOS 11 or later.
MIT License
113 stars 23 forks source link

Module RNSafeArea requires main queue setup since it overrides `init` but doesn't implement `requiresMainQueueUp` in a future release React Native will default to initializing all native modules on a background thread unless explicitly opted-out of. #3

Closed rowinbot closed 6 years ago

rowinbot commented 6 years ago

Getting this error with:

"react": "16.3.1",
"react-native": "0.55.4",
"react-native-safe-area": "^0.4.2"

Platform: iOS

Any ideas why is that error getting fired? Nice library though.

miyabi commented 6 years ago

@rowinbot Sorry for my late reply. The error is caused by react-native and the reason is here.

https://github.com/facebook/react-native/commit/d42ccca2e1451133504d35bb9e02adea25e5deaa

requiresMainQueueSetup should be implemented in my native module, but I leave it unimplemented because it works fine now. I'll implement it soon.

Thank you.