hunk.code_window: />
   ## Usage
   You should refer to the [react-native-webview docs](https://github.com/react-native-community/react-native-webview/blob/master/docs/Guide.mdx#react-native-webview-guide) for more information on the API and its usage. But the following example (courtesy of that repo) is a quick way to get up and running!
   <SnackInline label="Basic Webview usage" dependencies={["react-native-webview", "expo-constants"]}>
   {/* prettier-ignore */}
   ```jsx
  
hunk.labels: keep keep keep keep replace keep keep keep keep keep
hunk.after_edit: You should refer to the [react-native-webview docs](https://github.com/react-native-community/react-native-webview/blob/master/docs/Guide.md#react-native-webview-guide) for more information on the API and its usage. But the following example (courtesy of that repo) is a quick way to get up and running!
  
hunk.file_path: docs/pages/versions/v44.0.0/sdk/webview.mdx
hunk.type: replace
file: package expo.modules.devlauncher.rncompatibility
  
  import android.content.Context
  import com.facebook.hermes.reactexecutor.HermesExecutorFactory
  import com.facebook.react.bridge.JavaScriptExecutorFactory
  import com.facebook.react.devsupport.DevSupportManagerFactory
  import com.facebook.react.jscexecutor.JSCExecutorFactory
  import com.facebook.react.modules.systeminfo.AndroidInfoHelpers
  import com.facebook.soloader.SoLoader
  import expo.modules.core.interfaces.ReactNativeHostHandler
  import expo.modules.devlauncher.DevLauncherController
  import java.lang.ref.WeakReference
  
  class DevLauncherReactNativeHostHandler(context: Context) : ReactNativeHostHandler {
    private val contextHolder = WeakReference(context)
    override fun getDevSupportManagerFactory(): DevSupportManagerFactory {
      return DevLauncherDevSupportManagerFactory()
    }
  
    override fun getUseDeveloperSupport(): Boolean? {
      return if (DevLauncherController.wasInitialized()) DevLauncherController.instance.useDeveloperSupport else null
    }
  
    override fun getJavaScriptExecutorFactory(): JavaScriptExecutorFactory? {
      val context = contextHolder.get() ?: return null
      val applicationContext = context.applicationContext
  
      SoLoader.init(applicationContext, /* native exopackage */ false)
      if (SoLoader.getLibraryPath("libv8android.so") != null) {
        // Assuming V8 overrides the `getJavaScriptExecutorFactory` in the main ReactNativeHost,
        // return null here to use the default value.
        return null
      }
      if (SoLoader.getLibraryPath("libjsc.so") != null) {
        return JSCExecutorFactory(applicationContext.packageName, AndroidInfoHelpers.getFriendlyDeviceName())
      }
      return HermesExecutorFactory()
    }
  }
  