diff --git a/android/src/main/java/com/th3rdwave/safeareacontext/SafeAreaContextPackage.kt b/android/src/main/java/com/th3rdwave/safeareacontext/SafeAreaContextPackage.kt index 691a782..51ade39 100644 --- a/android/src/main/java/com/th3rdwave/safeareacontext/SafeAreaContextPackage.kt +++ b/android/src/main/java/com/th3rdwave/safeareacontext/SafeAreaContextPackage.kt @@ -1,6 +1,6 @@ package com.th3rdwave.safeareacontext -import com.facebook.react.TurboReactPackage +import com.facebook.react.BaseReactPackage import com.facebook.react.bridge.NativeModule import com.facebook.react.bridge.ReactApplicationContext import com.facebook.react.module.annotations.ReactModule @@ -8,9 +8,9 @@ import com.facebook.react.module.model.ReactModuleInfo import com.facebook.react.module.model.ReactModuleInfoProvider import com.facebook.react.uimanager.ViewManager -// Fool autolinking for older versions that do not support TurboReactPackage. +// Fool autolinking for older versions that do not support BaseReactPackage. // public class SafeAreaContextPackage implements ReactPackage { -class SafeAreaContextPackage : TurboReactPackage() { +class SafeAreaContextPackage : BaseReactPackage() { override fun getModule(name: String, reactContext: ReactApplicationContext): NativeModule? { return when (name) { SafeAreaContextModule.NAME -> SafeAreaContextModule(reactContext)