File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ import connect from "connect";
66import debug from "debug" ;
77import type { MetroConfig } from "metro-config" ;
88
9- import type { CompilerOptions } from "../compiler" ;
9+ import type { CompilerOptions , ReactNativeCssStyleSheet_V2 } from "../compiler" ;
1010import { compile } from "../compiler/compiler" ;
1111import { getNativeInjectionCode , getWebInjectionCode } from "./injection-code" ;
1212import { nativeResolver , webResolver } from "./resolver" ;
@@ -93,7 +93,10 @@ export function withReactNativeCSS<
9393 if ( ! bundler . __react_native_css__patched ) {
9494 bundler . __react_native_css__patched = true ;
9595
96- const nativeCSSFiles = new Map ( ) ;
96+ const nativeCSSFiles = new Map <
97+ string ,
98+ [ string , ReactNativeCssStyleSheet_V2 ]
99+ > ( ) ;
97100 const webCSSFiles = new Set < string > ( ) ;
98101
99102 const nativeInjectionPath = require . resolve (
@@ -174,7 +177,7 @@ export function withReactNativeCSS<
174177 next ,
175178 compile ( next , {
176179 hexColors : options ?. hexColors ,
177- } ) ,
180+ } ) . stylesheet ( ) ,
178181 ] ) ;
179182
180183 watcher . emit ( "change" , {
You can’t perform that action at this time.
0 commit comments