Skip to main content
Version: Next

Taro.getExtConfigSync()

The synchronous version of Taro.getExtConfig.

Tips

  • The compatibility of this API cannot be determined via Taro.canIUse currently. You need to figure out yourself whether Taro.getExtConfigSync exists and is compatible with the API.

Reference

Type

() => Record<string, any>

Parameters

ExtInfo

PropertyTypeDescription
extConfigRecord<string, any>Data customized by the third-party platform

Sample Code

let extConfig = Taro.getExtConfigSync? Taro.getExtConfigSync(): {}

console.log(extConfig)

API Support

APIWeChat Mini-ProgramH5React Native
Taro.getExtConfigSync✔️