FAQ
Can I run Unistyles on Expo Go?
Section titled “Can I run Unistyles on Expo Go?”No, Unistyles includes custom native code, which means it does not support Expo Go.
What happened to macOS, windows, visionOS, tvOS support?
Section titled “What happened to macOS, windows, visionOS, tvOS support?”For now they’re not available. We’re seeking sponsors to help us add support, as they are rarely used by our customers.
Can I run Unistyles on Old Architecture?
Section titled “Can I run Unistyles on Old Architecture?”No, Unistyles is tightly integrated with Fabric. There are no plans to support Old Architecture.
We are not ready to upgrade. What will happen with version 2.0?
Section titled “We are not ready to upgrade. What will happen with version 2.0?”We understand that some apps require more time to migrate to the New Architecture. Unistyles 2.0 is in maintenance mode, and new features land only in Unistyles 3.x.
Adaptive mode doesn’t work for me
Section titled “Adaptive mode doesn’t work for me”To enable adaptive mode, you need to register two themes named light and dark and set the adaptiveThemes flag to true within StyleSheet.configure.
If your app still doesn’t automatically switch themes, ensure that:
- For Expo your
app.jsoncontains auserInterfaceStylekey with the value automatic - For bare React Native, your
Info.plistdoes not have theUIUserInterfaceStylekey set to a hardcoded value - You haven’t forced a color scheme with
Appearance.setColorScheme('light' | 'dark')fromreact-native(use'unspecified'to reset it) - You have phone with iOS 15+ or Android 10+
- Your device supports dark mode
ld.lld: error: Undefined symbols margelo::nitro::*
Section titled “ld.lld: error: Undefined symbols margelo::nitro::*”This error occurs due to the strong caching mechanism in Android Studio. The cache can even survive the expo prebuild --clean command in Expo projects.
To clean the cache, please follow these steps:
cd android./gradlew cleangit clean -dfXNow, try rebuilding your app.