expo-module.config.json
了解 expo-module.config.json 中可用的不同配置选项。
Expo 模块在 expo-module.config.json 中配置。该文件当前能够配置自动链接和模块注册。可以使用以下属性:
¥Expo modules are configured in expo-module.config.json. This file currently is capable of configuring autolinking and module registration. The following properties are available:
-
platforms
— 一系列受支持的平台。可接受的值为android
、apple
(或使用更精细的ios
/macos
/tvos
)、web
和devtools
(参见 创建开发工具插件)。¥
platforms
— An array of supported platforms. Acceptable values areandroid
,apple
(or use the more granularios
/macos
/tvos
),web
anddevtools
(see Create a dev tools plugin). -
apple
— 使用特定于 Apple 平台的选项进行配置¥
apple
— Config with options specific to Apple platforms-
modules
— 要放入生成的模块提供程序文件的 Swift 原生模块类的名称。¥
modules
— Names of Swift native modules classes to put to the generated modules provider file. -
appDelegateSubscribers
— 钩子到ExpoAppDelegate
以接收 AppDelegate 生命周期事件的 Swift 类的名称。¥
appDelegateSubscribers
— Names of Swift classes that hook intoExpoAppDelegate
to receive AppDelegate lifecycle events.
-
-
android
— 使用特定于 Android 平台的选项进行配置¥
android
— Config with options specific to Android platform-
modules
— 要放入生成的包提供程序文件的 Kotlin 原生模块类的全名(包 + 类名)。¥
modules
— Full names (package + class name) of Kotlin native modules classes to put to the generated package provider file.
-