Skip to content

Latest commit

 

History

History

processor

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

@ui-kitten/processor

Mapping processor for UI Kitten. Turns an Eva-style mapping (component appearances, variants and states) into the flat style objects components render with. Replaces @eva-design/dss and @eva-design/processor from v5.

Used internally by @ui-kitten/components and @ui-kitten/metro-config; install it directly only when you process mappings yourself.

npm install @ui-kitten/processor
const { SchemaProcessor } = require('@ui-kitten/processor');
const { mapping } = require('@ui-kitten/eva');

const styles = new SchemaProcessor().process(mapping);

Also exports MetaProcessor, createStyle, clearProcessorCache and getProcessorCacheStats.

Part of UI Kitten

Lives in the UI Kitten monorepo and is versioned together with @ui-kitten/components. Upgrading from 5.x? Run npx @ui-kitten/codemod and read the 5.x to 6 migration guide.

MIT