Skip to content

Commit

Permalink
[android][ios] Upgrade react-native-safe-area-context to 4.4.1
Browse files Browse the repository at this point in the history
  • Loading branch information
brentvatne committed Oct 6, 2022
1 parent 366e33a commit d26992d
Show file tree
Hide file tree
Showing 13 changed files with 260 additions and 508 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import com.facebook.react.module.model.ReactModuleInfo
import com.facebook.react.module.model.ReactModuleInfoProvider
import com.facebook.react.turbomodule.core.interfaces.TurboModule
import com.facebook.react.uimanager.ViewManager
import com.facebook.soloader.SoLoader

// Fool autolinking for older versions that do not support TurboReactPackage.
// public class SafeAreaContextPackage implements ReactPackage {
Expand Down Expand Up @@ -40,13 +39,6 @@ class SafeAreaContextPackage : TurboReactPackage() {
}

override fun createViewManagers(reactContext: ReactApplicationContext): List<ViewManager<*, *>> {
if (BuildConfig.IS_NEW_ARCHITECTURE_ENABLED) {
// For Fabric, we load c++ native library here, this triggers screen's Fabric
// component registration which is necessary in order to avoid asking users
// to manually add init calls in their application code.
// This should no longer be needed if RN's autolink mechanism has Fabric support
SoLoader.loadLibrary("safeareacontext_modules")
}
return listOf<ViewManager<*, *>>(SafeAreaProviderManager(), SafeAreaViewManager())
}
}

0 comments on commit d26992d

Please sign in to comment.