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

can getSafeAreaInsetsForRootView not return a promise ? #8

Closed jpamarohorta closed 5 years ago

jpamarohorta commented 5 years ago

Is there any implementation reason for getSafeAreaInsetsForRootView to return a promise?

I would like to use the safe area insets to set some style variables but with this method being async, that gets more difficult.

EDIT: Just checked, the native RNSafeArea getSafeAreaInsetsForRootView method returns a promise so nothing can be done. Closing this issue then.