79219098

Date: 2024-11-24 00:21:33
Score: 1
Natty:
Report link

do you use typescript? you might need to create a nativewind-env.d.ts file with just this line in it:

/// <reference types="nativewind/types" />

and in your metro.config.js file, make sure you have this setup:

const { getDefaultConfig } = require("expo/metro-config");
const { withNativeWind } = require("nativewind/metro");

const config = getDefaultConfig(__dirname);

module.exports = withNativeWind(config,{ input: "./styles/global.css" });

Reasons:
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: divine