(
css: string,
{
debugCompiled = process.env.NODE_OPTIONS?.includes("--inspect"),
...options
}: CssToReactNativeRuntimeOptions & { debugCompiled?: boolean } = {},
)
| 133 | }; |
| 134 | |
| 135 | export 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 | |
| 149 | registerCSS.debug = ( |
| 150 | css: string, |
no test coverage detected
searching dependent graphs…