'isHermesEnabled' ничего не переопределяет
Это основной файл приложения:
Код: Выделить всё
class MainApplication : Application(), ReactApplication {
private val mReactNativeHost: ReactNativeHost = object :
DefaultReactNativeHost(this) {
override fun getUseDeveloperSupport(): Boolean {
return BuildConfig.DEBUG
}
override protected fun getPackages(): ArrayList {
@SuppressWarnings("UnnecessaryLocalVariable")
val packages: ArrayList = PackageList(this).getPackages()
return packages
}
override fun getJSMainModuleName(): String {
return "index.android"
}
override protected fun getJSBundleFile(): String? {
return if (BuildConfig.DEBUG) {
super.getJSBundleFile()
} else CodePush.getJSBundleFile()
}
override protected fun getJSIModulePackage(): JSIModulePackage? {
return ReanimatedJSIModulePackage()
}
override protected fun isNewArchEnabled(): Boolean {
return BuildConfig.IS_NEW_ARCHITECTURE_ENABLED
}
override protected fun isHermesEnabled(): Boolean {
return BuildConfig.IS_HERMES_ENABLED
}
}
У меня установлена переменная Hermes true< /strong> в build.gradle
Код: Выделить всё
project.ext.react = [
enableHermes: true ]
Код: Выделить всё
hermesEnabled=true
Подробнее здесь: https://stackoverflow.com/questions/769 ... -in-kotlin
Мобильная версия