Last updated on January 10, 2026
TypeScript Setup
If you're using TypeScript in your project, you'll need to set up the type definitions. Nativewind extends the React Native types via declaration merging. The simplest method to include the types is to create a new nativewind-env.d.ts file and add a triple-slash directive referencing the types.
CAUTION
Do not call this file:
nativewind.d.ts- The same name as a file or folder in the same directory e.g
app.d.tswhen an/appfolder exists - The same name as a folder in
node_modules, e.greact.d.ts
By doing so, your types will not be picked up by the TypeScript compiler.