Skip to content

Registry API Reference

The Registry is a centralized system that manages component configurations and themes across your React Native application. It provides a single source of truth for storing and accessing component styles, variants, and other customization options.

MethodParametersReturn TypeDescription
registerPresetname: string, config: ThemeConfigFunctionvoidAdds a new theme preset configuration
getPresetname: stringThemeConfigFunction | undefinedRetrieves a registered preset by name
getAllPresets-string[]Returns all registered preset names
hasPresetname: stringbooleanChecks if a preset exists in registry
deletePresetname: stringvoidRemoves a preset from the registry
clearPresets-voidClears all registered presets
type ThemeConfigFunction = (isDark: boolean) => Partial<Theme>;