import {Platform, Dimensions} from 'react-native'; import moment from 'moment'; const colors = { primary: "#E74610", primaryDark: "#d6410f", accent: "#005598", accentDark: "#013964", primaryTransparent: "#1AE74610", white: "#fff", white50: "#78ffffff", black: "#000000", gray: "#888DA8", searchText: "#707070", searchGray: "#AFAFAF", whitesmoke: "#F5F5F5", darkerWhite: "#FFEDE6", darkerGray: "#3b3b3b", lightGray: "#EAEAEA", darkGray: "#8E8E93", black50: "#aa000000", dim: "#4D000000", textPrimary: "#4B4B4B", yellow: "#FFCE00", ratingBorder: "#8E8E93", pink: "#FFEDE6", inactive: "rgba(255, 255, 255, 0.4)", placeHolder: "rgba(0,0,0,.3)", iqair: [ {main: "#48B74A", opacity: "#8BD38C"}, {main: "#FFC303", opacity: "#FFD95F"}, {main: "#FF9945", opacity: "#FEBF8A"}, {main: "#D2334B", opacity: "#E47F8D"}, {main: "#0188BC", opacity: "#5EB4D5"}, {main: "#4D3068", opacity: "#8F7CA0"}, ] } const screen = { w: Dimensions.get('window').width, h: Dimensions.get('window').height, tabHeight: 58 } const card = { elevation: 0, radius: 16, } const font = "Arial"; const formatter = { NAME: function(profile){ return profile ? profile.firstname + " " + profile.middlename + " " + profile.lastname : "FIRSTNAME LASTNAME" }, CN: function(card){ let range = 4 let indexes = [0, 4, 8, 12] let res = "" for(var x=0;x