Skip to content

Commit 4fdff3c

Browse files
authored
Set nativewind to use the native stylesheet on the web
1 parent 1316633 commit 4fdff3c

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

app/_layout.tsx

+5
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
11
import { Stack } from 'expo-router';
2+
import { NativeWindStyleSheet } from 'nativewind';
3+
4+
NativeWindStyleSheet.setOutput({
5+
default: 'native',
6+
});
27

38
export default function Layout() {
49
return <Stack />;

tailwind.config.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/** @type {import('tailwindcss').Config} */
22
module.exports = {
3-
content: ['./src/**/*.{js,ts,jsx,tsx}'],
3+
content: ['./src/**/*.{js,ts,jsx,tsx}', './app/**/*.{js,ts,jsx,tsx}'],
44
theme: {
55
extend: {},
66
},

0 commit comments

Comments
 (0)