MCPcopy Create free account
hub / github.com/NativeScript/SimDeck / colorValue

Function colorValue

packages/nativescript-inspector/src/index.ts:2086–2100  ·  view source on GitHub ↗
(color: any)

Source from the content-addressed store, hash-verified

2084}
2085
2086function colorValue(color: any): JSONObject | null {
2087 if (!color) {
2088 return null;
2089 }
2090 return safeCall(() => {
2091 if (!isKindOf(color, "UIColor")) {
2092 return null;
2093 }
2094 const description = stringValue(color);
2095 if (!description) {
2096 return null;
2097 }
2098 return { description };
2099 }, null);
2100}
2101
2102function accessibilityInfo(view: any): JSONObject {
2103 return {

Callers 2

uikitNodeMethod · 0.85
encodeValueFunction · 0.85

Calls 3

safeCallFunction · 0.85
isKindOfFunction · 0.85
stringValueFunction · 0.85

Tested by

no test coverage detected