Skip to content

Commit 4e47916

Browse files
committed
Fix setup
1 parent df7b61f commit 4e47916

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

examples/next-16/next.config.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import type { NextConfig } from "next";
22
import { withUniwind } from "uniwind-plugin-next";
33
import { withExpo } from "@expo/next-adapter";
4-
import { NormalModuleReplacementPlugin } from "webpack";
54

65
const nextConfig: NextConfig = {
76
webpack(config) {

examples/next-16/src/app/ReactNativeWebStyleSheet.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,15 @@
22

33
import { useRef } from "react";
44
import { useServerInsertedHTML } from "next/navigation";
5+
import { StyleSheet } from "react-native";
56

67
export 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

0 commit comments

Comments
 (0)