Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
import { StyleSheet } from 'react-native'
import { createStyled } from '@emotion/primitives-core'
/**
* a function that returns a styled component which render styles in React Native
*/
let styled = createStyled(StyleSheet)
export { styled }
/**
* a function that returns a styled component which render styles on multiple targets with same code
*/
type CreateStyledComponent = (...styles: any) => React.ElementType
type BaseStyled = (tag: React.ElementType) => CreateStyledComponent
export type Styled = BaseStyled & {
View: CreateStyledComponent,
Text: CreateStyledComponent,
Image: CreateStyledComponent
}
let styled: Styled = createStyled(StyleSheet, { getShouldForwardProp })
export { styled }