Troubleshoot

Common tips and troubleshooting steps to help you get started with NativeWindUI.

ClassNames are not showing up

If a className isn't displaying correctly, check the component's file and check the className for prefixes

By default, classes apply to all platforms.
However, when there are styling differences between them, material UI is the default and iOS styling requires an “ios:” prefix.
The same thing happens with light/dark mode specific classes that are not css variables. By default, the classes are for light mode so if a style in the component is set with “dark:” or a combination (ex: “ios:dark:”), the same prefix is needed when you use the component and you want to change that styling.

Styles aren't applied correctly in the React Native app

npx expo start -c
Discord
Join Discord for more help
© Ronin Technologies LLC 2024