Skip to main content

Typescript

NativeWind extends the React Native types via declaration merging. The simplest method to include the types is to create is to a new .d.ts file (e.g. my-app.d.ts) and add a triple-slash directive referencing the types.

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