File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11import type { NextConfig } from "next" ;
22import { withUniwind } from "uniwind-plugin-next" ;
33import { withExpo } from "@expo/next-adapter" ;
4- import { NormalModuleReplacementPlugin } from "webpack" ;
54
65const nextConfig : NextConfig = {
76 webpack ( config ) {
Original file line number Diff line number Diff line change 22
33import { useRef } from "react" ;
44import { useServerInsertedHTML } from "next/navigation" ;
5+ import { StyleSheet } from "react-native" ;
56
67export function ReactNativeWebStyleSheet ( ) {
78 const hasInserted = useRef ( false ) ;
89 useServerInsertedHTML ( ( ) => {
910 if ( hasInserted . current ) return ;
1011 hasInserted . current = true ;
11- const sheet = getServerStyleSheet ( ) ;
12+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
13+ const sheet = ( StyleSheet as any ) . getSheet ( ) ;
1214
1315 return (
1416 < style
You can’t perform that action at this time.
0 commit comments