Taro.getExtConfigSync()
The synchronous version of Taro.getExtConfig.
Tips
- The compatibility of this API cannot be determined via
Taro.canIUsecurrently. You need to figure out yourself whetherTaro.getExtConfigSyncexists and is compatible with the API.
Type
() => Record<string, any>
Parameters
ExtInfo
| Property | Type | Description |
|---|---|---|
| extConfig | Record<string, any> | Data customized by the third-party platform |
Sample Code
let extConfig = Taro.getExtConfigSync? Taro.getExtConfigSync(): {}
console.log(extConfig)
API Support
| API | WeChat Mini-Program | H5 | React Native |
|---|---|---|---|
| Taro.getExtConfigSync | ✔️ |