Something went wrong. Try again.
[READ-ONLY] Mirror of https://github.com/chrisvander/schedj-frontend. A mobile application for students to access and manage scheduling and
Something went wrong. Try again.
1234567891011121314151617import React from 'react';import { Dimensions, Platform, PixelRatio } from 'react-native';
const { width: SCREEN_WIDTH, height: SCREEN_HEIGHT,} = Dimensions.get('window');
const scale = SCREEN_WIDTH / 400;
export default function (num) { if (Platform.OS === 'ios') { return Math.round(PixelRatio.roundToNearestPixel(num * scale)); } return Math.round(PixelRatio.roundToNearestPixel(num * scale)) - 2;}