UNPKG

react-native-elements

Version:
26 lines (22 loc) 603 B
import { Platform, Dimensions } from 'react-native'; import color from 'color'; import renderNode from './renderNode'; import getIconType from './getIconType'; import normalizeText from './normalizeText'; import nodeType from './nodeType'; const Screen = Dimensions.get('window'); const ScreenWidth = Screen.width; const ScreenHeight = Screen.height; const isIOS = Platform.OS === 'ios'; const conditionalStyle = (condition, style) => (condition ? style : {}); export { renderNode, getIconType, normalizeText, nodeType, ScreenWidth, ScreenHeight, isIOS, conditionalStyle, color, };