import type { CSSObject } from '@theme-ui/css' ; import { StyleSheet } from 'react-native' ; const cache = { } ; deprecated export class StyleSheetCache { static get ( style ) { const string = JSON . stringify ( style || { } ) ; if ( ! cache . hasOwnProperty ( string ) || ! cache [ string ] ) { cache [ string ] = StyleSheet . create ( { dripsyStyle : JSON . parse ( string ) } ) ; } return cache [ string ] . dripsyStyle ; } }