-
Notifications
You must be signed in to change notification settings - Fork 22
Description
Describe the bug
The app completely reloads/restarts when width, height, padding, margin or color (background, text, border) NativeWind classes are added or changed. Occasionally (< 1% of the time) the change will apply without a full reload.
This breaks the development flow by losing component state and forcing the app to restart from the initial screen, making styling iterations extremely slow.
I have attached a video below to show this behaviour. The first bg color change was one of the lucky attempts that didn't reload the app. Every subsequent change did.
CleanShot.2025-06-07.at.20.05.45.mp4
Reproduction
I have created a new expo and with tabs and followed the nativewind docs for the installation. Feel free to clone the repo https://github.com/hmirza1/hassan-test-expo-nativewind.git
Expected behavior
Class changes should apply instantly via hot reload without restarting the entire app including the currently navigated page.
Additional context
Expo SDK 53
NativeWind 4.1.23
React Native 0.79.3
I am also using expo-router.