This documentation is available as Markdown for AI agents and LLMs. See the full Markdown index or append .md to any documentation URL.
This is documentation for the next SDK version. For up-to-date documentation, see the latest version (SDK 57).
Expo Router Color
An Expo Router API for accessing platform-specific native colors.
Android
iOS
The Color API provides access to platform-specific native colors.
See the Expo Router reference for installation and configuration.
Usage
import { Color } from 'expo-router'; import { Text, View, useColorScheme } from 'react-native'; export default function MyComponent() { useColorScheme(); return ( <View style={{ flex: 1, backgroundColor: Color.android.dynamic.primary }}> <Text style={{ color: Color.ios.label }}>Hello</Text> </View> ); }
API
import { Color } from 'expo-router';
No API data file found, sorry!