File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ import connect from "connect";
6
6
import debug from "debug" ;
7
7
import type { MetroConfig } from "metro-config" ;
8
8
9
- import type { CompilerOptions } from "../compiler" ;
9
+ import type { CompilerOptions , ReactNativeCssStyleSheet_V2 } from "../compiler" ;
10
10
import { compile } from "../compiler/compiler" ;
11
11
import { getNativeInjectionCode , getWebInjectionCode } from "./injection-code" ;
12
12
import { nativeResolver , webResolver } from "./resolver" ;
@@ -93,7 +93,10 @@ export function withReactNativeCSS<
93
93
if ( ! bundler . __react_native_css__patched ) {
94
94
bundler . __react_native_css__patched = true ;
95
95
96
- const nativeCSSFiles = new Map ( ) ;
96
+ const nativeCSSFiles = new Map <
97
+ string ,
98
+ [ string , ReactNativeCssStyleSheet_V2 ]
99
+ > ( ) ;
97
100
const webCSSFiles = new Set < string > ( ) ;
98
101
99
102
const nativeInjectionPath = require . resolve (
@@ -174,7 +177,7 @@ export function withReactNativeCSS<
174
177
next ,
175
178
compile ( next , {
176
179
hexColors : options ?. hexColors ,
177
- } ) ,
180
+ } ) . stylesheet ( ) ,
178
181
] ) ;
179
182
180
183
watcher . emit ( "change" , {
You can’t perform that action at this time.
0 commit comments