MCPcopy Create free account
hub / github.com/ptmt/react-native-macos / getStyle

Function getStyle

Libraries/StyleSheet/flattenStyle.js:19–24  ·  view source on GitHub ↗
(style)

Source from the content-addressed store, hash-verified

17import type { StyleObj } from 'StyleSheetTypes';
18
19function getStyle(style) {
20 if (typeof style === 'number') {
21 return ReactNativePropRegistry.getByID(style);
22 }
23 return style;
24}
25
26function flattenStyle(style: ?StyleObj): ?Object {
27 if (!style) {

Callers 1

flattenStyleFunction · 0.85

Calls 1

getByIDMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…