This file contains hidden or 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
"use strict" | |
import React from "react-native"; | |
// We Import our Stylesheet | |
import Style from "./Style"; | |
const { | |
View, | |
Text, | |
StyleSheet, |
This file contains hidden or 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 React from "react-native"; | |
import Dimensions from 'Dimensions'; | |
// Precalculate Device Dimensions for better performance | |
const x = Dimensions.get('window').width; | |
const y = Dimensions.get('window').height; | |
// Calculating ratio from iPhone breakpoints | |
const ratioX = x < 375 ? (x < 320 ? 0.75 : 0.875) : 1 ; | |
const ratioY = y < 568 ? (y < 480 ? 0.75 : 0.875) : 1 ; |
This file contains hidden or 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
Show hidden characters
{ | |
"presets": ["react-native"] | |
} |