Skip to content

Instantly share code, notes, and snippets.

@dannydb
Created February 12, 2019 21:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dannydb/ebe5b0c81f1247a6ab562708a131bf13 to your computer and use it in GitHub Desktop.
Save dannydb/ebe5b0c81f1247a6ab562708a131bf13 to your computer and use it in GitHub Desktop.
Doxy Grid
import { Platform } from 'react-native'
const GRID_VALUE = 8
const NUDGE_VALUE = 4
const getGridDimension = (increment = 1) => increment * GRID_VALUE
const getNudgeDimension = () => NUDGE_VALUE
const getPlatformMargin = () => {
return Platform.select({
ios: 20,
android: 16
})
}
export {
getGridDimension,
getNudgeDimension,
getPlatformMargin
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment