This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { Dimensions, Platform } from 'react-native'; | |
export const isIphoneX = () => { | |
const { height, width } = Dimensions.get('window'); | |
return Platform.OS === 'ios' && (height === 812 || width === 812) | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
DECLARE @dt DATETIME | |
SET @dt = GETDATE() | |
@dt = DATEADD(ms,-DATEPART(ms,@dt),@dt) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { Dimensions, Platform } from "react-native"; | |
const { height, width, scale, fontScale } = Dimension.get('window'); | |
const renderHeight = height; | |
const renderWidth = width; | |
const resolution ={ | |
height: renderHeight * scale, | |
width: renderWidth * scale | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const fontWeight = { | |
thin: "100", //Thin | |
ultraLight: "200", //Ultra Light | |
light: "300", //Light | |
regular: "400", //Regular | |
medium: "500", //Medium | |
semiBold: "600", //Semi Bold | |
bold: "700", //Bold | |
heavy: "800", //Heavy | |
black: "900" //Black |