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.14k stars 197 forks source link

fix: check arch to decide if module is turbomodule #488

Closed WoLewicki closed 5 months ago

WoLewicki commented 5 months ago

Summary

PR adding check for arch to decide if module is turbomodule since TurboModule::class.java.isAssignableFrom(moduleClass) should not be used anymore. It works since the behavior has been restored: https://github.com/facebook/react-native/issues/43213 but I think it is better to be prepared if it would be changed somewhere in the future.

Test Plan

janicduplessis commented 5 months ago

Thanks @WoLewicki !