π¨ React Native β Theme
Concepts
At initializeβ
await AzeooSDK.initialize({
apiKey: process.env.AZEOO_API_KEY!,
locale: 'en',
theme: {
primaryLight: '#0066CC',
primaryDark: '#4DA3FF',
secondaryLight: '#00AA88',
secondaryDark: '#66DDAA',
backgroundLight: '#FFFFFF',
backgroundDark: '#121212',
success: '#22C55E',
error: '#EF4444',
warning: '#F59E0B',
},
});
After connectβ
await sdk.setThemeMode('dark');
await sdk.setPrimaryColor('#7C3AED');
await sdk.resetTheme();
const theme = await sdk.getCurrentTheme();
Use getCurrentTheme to style React Navigation headers to match the SDK.