See how a minor change to your commit message style can make you a better programmer.
Format: <type>(<scope>): <subject>
<scope> is optional
| import { Dimensions } from "react-native"; | |
| const { width: windowWidth, height: windowHeight } = Dimensions.get("window"); | |
| export const adjustSize = (sourceWidth: number, sourceHeight: number) => { | |
| let ratio = 1; | |
| if (windowWidth && windowHeight) { | |
| ratio = Math.min(windowWidth / sourceWidth, windowHeight / sourceHeight); | |
| } |
| export const countries = [ | |
| { | |
| country: "Afghanistan", | |
| countryCode: "93", | |
| isoCode: "AF" | |
| }, | |
| { | |
| country: "Albania", | |
| countryCode: "355", | |
| isoCode: "AL" |
| import { Dimensions } from "react-native" | |
| export const isDeviceScreenLarge = (): boolean => { | |
| return aspectRatio() >= (19.5 / 9) | |
| } | |
| export const isScreen16_9 = (): boolean => { | |
| return aspectRatio() <= 16 / 9 | |
| } |
| package com.xxxxx; | |
| import android.content.Intent; | |
| import android.os.Bundle; | |
| import com.facebook.react.ReactActivity; | |
| public class SplashActivity extends ReactActivity { | |
| @Override | |
| protected void onCreate(Bundle savedInstanceState) { |