MCPcopy Index your code
hub / github.com/nativewind/nativewind / registerCSS

Function registerCSS

packages/react-native-css-interop/src/test/index.tsx:135–147  ·  view source on GitHub ↗
(
  css: string,
  {
    debugCompiled = process.env.NODE_OPTIONS?.includes("--inspect"),
    ...options
  }: CssToReactNativeRuntimeOptions & { debugCompiled?: boolean } = {},
)

Source from the content-addressed store, hash-verified

133};
134
135export function registerCSS(
136 css: string,
137 {
138 debugCompiled = process.env.NODE_OPTIONS?.includes("--inspect"),
139 ...options
140 }: CssToReactNativeRuntimeOptions & { debugCompiled?: boolean } = {},
141) {
142 const compiled = cssToReactNativeRuntime(css, options);
143 if (debugCompiled) {
144 console.log(`Compiled styles:\n\n${JSON.stringify({ compiled }, null, 2)}`);
145 }
146 injectData(compiled);
147}
148
149registerCSS.debug = (
150 css: string,

Calls 2

cssToReactNativeRuntimeFunction · 0.90
injectDataFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…