MCPcopy Create free account
hub / github.com/NativeScript/NativeScript / getDrawableId

Function getDrawableId

packages/core/utils/native-helper-for-android.ts:243–245  ·  view source on GitHub ↗
(name)

Source from the content-addressed store, hash-verified

241 const attrCache = new Map<string, number>();
242
243 export function getDrawableId(name) {
244 return getId(':drawable/' + name);
245 }
246
247 export function getStringId(name) {
248 return getId(':string/' + name);

Callers

nothing calls this directly

Calls 1

getIdFunction · 0.85

Tested by

no test coverage detected