ApplicationProvider
ApplicationProvider is the root component of a UI Kitten application. It provides Eva Design System styles, theme variables, and icon packs to all descendant components. Every UI Kitten app must wrap its root component tree with ApplicationProvider.
Import
import { ApplicationProvider } from '@ui-kitten/components';
Basic Usage
import React from 'react';
import * as eva from '@eva-design/eva';
import { ApplicationProvider, Layout, Text } from '@ui-kitten/components';
const App = () => (
<ApplicationProvider {...eva} theme={eva.light}>
<Layout style={{ flex: 1, justifyContent: 'center', alignItems: 'center' }}>
<Text category="h1">Welcome to UI Kitten</Text>
</Layout>
</ApplicationProvider>
);
export default App;
Props
| Property | Type | Default | Description |
|---|---|---|---|
mapping | SchemaType | - | Eva mapping configuration object. |
theme | ThemeType | - | Eva theme object (e.g., eva.light or eva.dark). |
customMapping | CustomSchemaType | undefined | Custom mapping overrides for component styles. |
children | ReactNode | - | The application component tree. |
Storybook
Live examples coming soon via Storybook.