react-native-unistyles
Version:
Level up your React Native StyleSheet
22 lines (18 loc) • 768 B
text/typescript
import type { UnistylesValues } from '../types'
import type { UnistylesListener } from './listener'
import type { UnistylesRegistry } from './registry'
import type { UnistylesRuntime } from './runtime'
import type { UnistylesShadowRegistry } from './shadowRegistry'
import type { UnistylesState } from './state'
export type UnistylesServices = {
runtime: UnistylesRuntime
registry: UnistylesRegistry
shadowRegistry: UnistylesShadowRegistry
state: UnistylesState
listener: UnistylesListener
}
export const UNI_GENERATED_KEYS = ['$$css', 'hash', 'injectedClassName'] as const
export type UniGeneratedKey = (typeof UNI_GENERATED_KEYS)[number]
export type UniGeneratedStyle = Record<UniGeneratedKey, string> & {
parsedStyles?: UnistylesValues
}