title: Taro.getExtConfigSync()

sidebar_label: 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.getExtConfigSyncexists and is compatible with the API.

Reference

Type

  1. () => Record<string, any>

Parameters

ExtInfo

Property Type Description
extConfig Record<string, any> Data customized by the third-party platform

Sample Code

  1. let extConfig = Taro.getExtConfigSync? Taro.getExtConfigSync(): {}
  2. console.log(extConfig)

API Support

API WeChat Mini-Program H5 React Native
Taro.getExtConfigSync ✔️