Aller au contenu principal

🎨 React Native — Thème

À l'initialisation

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',
},
});

Après connect

await sdk.setThemeMode('dark');
await sdk.setPrimaryColor('#7C3AED');
await sdk.resetTheme();
const theme = await sdk.getCurrentTheme();

Utilisez getCurrentTheme pour styliser les en-têtes React Navigation à l'image du SDK.


Voir aussi