🚨 Active Supply Chain Attack:node-ipc Package Compromised.Learn More
Socket
Book a DemoSign in
Socket

@freakycoder/react-native-helpers

Package Overview
Dependencies
Maintainers
1
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@freakycoder/react-native-helpers - npm Package Compare versions

Comparing version
2.0.2
to
2.1.0
+5
.idea/codeStyles/codeStyleConfig.xml
<component name="ProjectCodeStyleConfiguration">
<state>
<option name="USE_PER_PROJECT_SETTINGS" value="true" />
</state>
</component>
<component name="ProjectCodeStyleConfiguration">
<code_scheme name="Project" version="173">
<HTMLCodeStyleSettings>
<option name="HTML_SPACE_INSIDE_EMPTY_TAG" value="true" />
<option name="HTML_ENFORCE_QUOTES" value="true" />
</HTMLCodeStyleSettings>
<JSCodeStyleSettings version="0">
<option name="FORCE_SEMICOLON_STYLE" value="true" />
<option name="SPACE_BEFORE_FUNCTION_LEFT_PARENTH" value="false" />
<option name="FORCE_QUOTE_STYlE" value="true" />
<option name="ENFORCE_TRAILING_COMMA" value="Remove" />
<option name="SPACES_WITHIN_OBJECT_LITERAL_BRACES" value="true" />
<option name="SPACES_WITHIN_IMPORTS" value="true" />
</JSCodeStyleSettings>
<TypeScriptCodeStyleSettings version="0">
<option name="FORCE_SEMICOLON_STYLE" value="true" />
<option name="SPACE_BEFORE_FUNCTION_LEFT_PARENTH" value="false" />
<option name="FORCE_QUOTE_STYlE" value="true" />
<option name="ENFORCE_TRAILING_COMMA" value="Remove" />
<option name="SPACES_WITHIN_OBJECT_LITERAL_BRACES" value="true" />
<option name="SPACES_WITHIN_IMPORTS" value="true" />
</TypeScriptCodeStyleSettings>
<codeStyleSettings language="HTML">
<option name="SOFT_MARGINS" value="80" />
<indentOptions>
<option name="INDENT_SIZE" value="2" />
<option name="CONTINUATION_INDENT_SIZE" value="2" />
<option name="TAB_SIZE" value="2" />
</indentOptions>
</codeStyleSettings>
<codeStyleSettings language="JavaScript">
<option name="SOFT_MARGINS" value="80" />
<indentOptions>
<option name="INDENT_SIZE" value="2" />
<option name="CONTINUATION_INDENT_SIZE" value="2" />
<option name="TAB_SIZE" value="2" />
</indentOptions>
</codeStyleSettings>
<codeStyleSettings language="TypeScript">
<option name="SOFT_MARGINS" value="80" />
<indentOptions>
<option name="INDENT_SIZE" value="2" />
<option name="CONTINUATION_INDENT_SIZE" value="2" />
<option name="TAB_SIZE" value="2" />
</indentOptions>
</codeStyleSettings>
</code_scheme>
</component>

Sorry, the diff of this file is not supported yet

<component name="InspectionProjectProfileManager">
<profile version="1.0">
<option name="myName" value="Project Default" />
<inspection_tool class="Eslint" enabled="true" level="WARNING" enabled_by_default="true" />
</profile>
</component>
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="EslintConfiguration">
<option name="fix-on-save" value="true" />
</component>
</project>
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectModuleManager">
<modules>
<module fileurl="file://$PROJECT_DIR$/.idea/react-native-helpers.iml" filepath="$PROJECT_DIR$/.idea/react-native-helpers.iml" />
</modules>
</component>
</project>
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="PrettierConfiguration">
<option name="myConfigurationMode" value="AUTOMATIC" />
<option name="myRunOnSave" value="true" />
<option name="myRunOnReformat" value="true" />
</component>
</project>

Sorry, the diff of this file is not supported yet

<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="VcsDirectoryMappings">
<mapping directory="" vcs="Git" />
</component>
</project>
export declare const capitalizeFirstLetter: (str: string) => string;
export declare const capitalizeAllStartingWords: (str: string, lower?: boolean) => string;
export declare const capitalize: (str: string) => string;
export declare const generateRandomNumber: (min: number, max: number) => number;
export declare const diffArrays: (arr1: any[], arr2: any[]) => any[];
export declare const diffArraysWithId: (arr1: any[], arr2: any[]) => any[];
export declare const diffDates: (date: number, date2: number) => number;
export declare const isBlankString: (str: string) => boolean;
export declare const randomBoolean: () => boolean;
export declare const coinflip: () => boolean;
export declare const isEven: (val: number) => boolean;
export declare const removeAllDuplicateValuesInArray: (arr: any[]) => any[];
export declare const isArray: (arr: any[]) => boolean;
export declare const generateRandomString: () => string;
export declare const mergeArrays: (a: any[], b: any[]) => any[];
export declare const mergeArraysAndRemoveDuplicates: (a: any[], b: any[]) => any[];
export declare const getTrueType: (obj: any) => string;
export declare const isNotEmptyArray: (arr: any[]) => boolean;
export declare const safelyParseJson: (string?: string | null) => any;
export declare const isEmptyObj: (obj: any) => boolean;
export declare const shuffleArray: (arr: any[]) => any[];
export declare const convertSnakeToCamelCase: (str: string) => string;
export declare const getRandomHexColor: () => string;
export declare const convertRGBToHexColor: (r: number, g: number, b: number) => string;
export declare const getMinMaxOfArray: (arr: any[]) => number[];
export declare const sleep: (delay: number) => Promise<void>;
/**
* Create an object from the pairs of key and value
* @param arr
* @returns
*/
export declare const toObj: (arr: any[]) => {
[k: string]: any;
};
/**
* Get union of arrays
* @param arr
* @returns
*/
export declare const getUnion: (...arr: any[]) => any[];
/**
* Partition an array based on the criteria/condition
* @param arr
* @param criteria
* @returns
*/
export declare const partition: (arr: any[], criteria: any) => any;
export const capitalizeFirstLetter = (str) => str && str.length ? str.charAt(0).toUpperCase() + str.slice(1) : str;
export const capitalizeAllStartingWords = (str, lower = false) => (lower ? str.toLowerCase() : str).replace(/(?:^|\s|[''({])+\S/g, (match) => match.toUpperCase());
export const capitalize = (str) => str.charAt(0).toUpperCase() + str.slice(1);
export const generateRandomNumber = (min, max) => Math.floor(Math.random() * (max - min + 1) + min);
export const diffArrays = (arr1, arr2) => arr1 &&
arr2 &&
arr1.filter((obj1) => !arr2.find((obj2) => obj1.id === obj2.id && obj2.isChecked));
export const diffArraysWithId = (arr1, arr2) => arr1 &&
arr2 &&
arr1.filter((obj1) => !arr2.find((obj2) => obj1.id === obj2.id && obj2.id));
export const diffDates = (date, date2) => Math.floor(Math.abs(date - date2) / 86400000);
export const isBlankString = (str) => !str || str.length === 0 || /^\s*$/.test(str);
export const randomBoolean = () => Math.random() >= 0.5;
export const coinflip = () => Math.random() >= 0.5;
export const isEven = (val) => val % 2 === 0;
export const removeAllDuplicateValuesInArray = (arr) => [
...new Set(arr),
];
export const isArray = (arr) => Array.isArray(arr);
export const generateRandomString = () => Math.random().toString(36).slice(2);
export const mergeArrays = (a, b) => [...a, ...b];
export const mergeArraysAndRemoveDuplicates = (a, b) => [
...new Set([...a, ...b]),
];
export const getTrueType = (obj) => Object.prototype.toString.call(obj).slice(8, -1).toLocaleLowerCase();
export const isNotEmptyArray = (arr) => Array.isArray(arr) && arr.length > 0;
export const safelyParseJson = (string) => {
try {
return JSON.parse(string);
}
catch {
return string;
}
};
export const isEmptyObj = (obj) => Reflect.ownKeys(obj).length === 0 && obj.constructor === Object;
export const shuffleArray = (arr) => arr.sort(() => 0.5 - Math.random());
export const convertSnakeToCamelCase = (str) => {
return str.replace(/([-_][a-z])/g, (group) => group.toUpperCase().replace("-", "").replace("_", ""));
};
export const getRandomHexColor = () => `#${Math.floor(Math.random() * 0xffffff)
.toString(16)
.padEnd(6, "0")}`;
export const convertRGBToHexColor = (r, g, b) => "#" + ((1 << 24) + (r << 16) + (g << 8) + b).toString(16).slice(1);
export const getMinMaxOfArray = (arr) => [
Math.min(...arr),
Math.max(...arr),
];
export const sleep = (delay) => {
return new Promise((resolve) => setTimeout(resolve, delay));
};
/**
* Create an object from the pairs of key and value
* @param arr
* @returns
*/
export const toObj = (arr) => Object.fromEntries(arr);
/**
* Get union of arrays
* @param arr
* @returns
*/
export const getUnion = (...arr) => [...new Set(arr.flat())];
/**
* Partition an array based on the criteria/condition
* @param arr
* @param criteria
* @returns
*/
export const partition = (arr, criteria) => arr.reduce((acc, i) => (acc[criteria(i) ? 0 : 1].push(i), acc), [[], []]);
//# sourceMappingURL=index.js.map
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../lib/utils/index.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,qBAAqB,GAAG,CAAC,GAAW,EAAE,EAAE,CACnD,GAAG,IAAI,GAAG,CAAC,M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G,CAAC,GAAG,GAAG,EAAE,EAAE,CAAC,CAAC,GAAG,IAAI,GAAG,CAAC,GAAG,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC;AAE7D;;;;;GAKG;AACH,MAAM,CAAC,MAAM,SAAS,GAAG,CAAC,GAAU,EAAE,QAAa,EAAE,EAAE,CACrD,GAAG,CAAC,MAAM,CAAC,CAAC,GAAG,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,GAAG,CAAC,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC,CAAC"}
+15
-1

@@ -12,2 +12,16 @@ declare const ScreenWidth: number;

declare const PlatformVersion: string | number;
export { isIOS, isAndroid, ScreenWidth, ScreenHeight, ScreenScale, ScreenFontScale, WindowWidth, WindowHeight, WindowScale, WindowFontScale, PlatformVersion, };
/**
* @description
* These are the dynamic calculation for the app is on the landscape or portrait mode.
*/
declare const ScreenMin: number;
declare const ScreenMax: number;
/**
* @description
* These are the viewport units for the web or mobile web who wants to use viewport units.
*/
declare const vh: number;
declare const vw: number;
declare const vmin: number;
declare const vmax: number;
export { vh, vw, vmin, vmax, ScreenMin, ScreenMax, isIOS, isAndroid, ScreenWidth, ScreenHeight, ScreenScale, ScreenFontScale, WindowWidth, WindowHeight, WindowScale, WindowFontScale, PlatformVersion, };
+21
-20

@@ -1,31 +0,32 @@

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.PlatformVersion = exports.WindowFontScale = exports.WindowScale = exports.WindowHeight = exports.WindowWidth = exports.ScreenFontScale = exports.ScreenScale = exports.ScreenHeight = exports.ScreenWidth = exports.isAndroid = exports.isIOS = void 0;
const react_native_1 = require("react-native");
import { Platform, Dimensions } from "react-native";
// ? Screen Constants
const Screen = react_native_1.Dimensions.get("screen");
const Screen = Dimensions.get("screen");
const ScreenWidth = Screen.width;
exports.ScreenWidth = ScreenWidth;
const ScreenHeight = Screen.height;
exports.ScreenHeight = ScreenHeight;
const ScreenScale = Screen.scale;
exports.ScreenScale = ScreenScale;
const ScreenFontScale = Screen.fontScale;
exports.ScreenFontScale = ScreenFontScale;
// ? Window Constants
const Window = react_native_1.Dimensions.get("window");
const Window = Dimensions.get("window");
const WindowWidth = Window.width;
exports.WindowWidth = WindowWidth;
const WindowHeight = Window.height;
exports.WindowHeight = WindowHeight;
const WindowFontScale = Window.fontScale;
exports.WindowFontScale = WindowFontScale;
const WindowScale = Window.scale;
exports.WindowScale = WindowScale;
const isIOS = react_native_1.Platform.OS === "ios";
exports.isIOS = isIOS;
const isAndroid = react_native_1.Platform.OS === "android";
exports.isAndroid = isAndroid;
const PlatformVersion = react_native_1.Platform.Version;
exports.PlatformVersion = PlatformVersion;
const isIOS = Platform.OS === "ios";
const isAndroid = Platform.OS === "android";
const PlatformVersion = Platform.Version;
/**
* @description
* These are the dynamic calculation for the app is on the landscape or portrait mode.
*/
const ScreenMin = Math.min(ScreenWidth, ScreenHeight) || ScreenHeight;
const ScreenMax = Math.max(ScreenWidth, ScreenHeight) || ScreenWidth;
/**
* @description
* These are the viewport units for the web or mobile web who wants to use viewport units.
*/
const vh = ScreenHeight / 100;
const vw = ScreenWidth / 100;
const vmin = Math.min(vh, vw) || vh;
const vmax = Math.max(vh, vw) || vw;
export { vh, vw, vmin, vmax, ScreenMin, ScreenMax, isIOS, isAndroid, ScreenWidth, ScreenHeight, ScreenScale, ScreenFontScale, WindowWidth, WindowHeight, WindowScale, WindowFontScale, PlatformVersion, };
//# sourceMappingURL=DeviceInfo.js.map

@@ -1,1 +0,1 @@

{"version":3,"file":"DeviceInfo.js","sourceRoot":"","sources":["../../../../lib/helpers/device/DeviceInfo.ts"],"names":[],"mappings":";;;AAAA,+CAAoD;AACpD,qBAAqB;AACrB,MAAM,MAAM,GAAG,yBAAU,CAAC,GAAG,CAAC,QAAQ,CAA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, "__esModule", { value: true });
const react_native_1 = require("react-native");
const pixelRatio = react_native_1.PixelRatio.get();
const deviceHeight = react_native_1.Dimensions.get("window").height;
const deviceWidth = react_native_1.Dimensions.get("window").width;
import { PixelRatio, Dimensions } from "react-native";
const pixelRatio = PixelRatio.get();
const deviceHeight = Dimensions.get("window").height;
const deviceWidth = Dimensions.get("window").width;
// ? -- Testing Only --

@@ -81,3 +79,3 @@ // const fontScale = PixelRatio.getFontScale();

};
exports.default = normalize;
export default normalize;
//# sourceMappingURL=normalizeText.js.map

@@ -1,1 +0,1 @@

{"version":3,"file":"normalizeText.js","sourceRoot":"","sources":["../../../../lib/helpers/normalize/normalizeText.ts"],"names":[],"mappings":";AAAA;;;;;;;;GAQG;;AAEH,+CAAsD;AAEtD,MAAM,UAAU,GAAG,yBAAU,CAAC,GAAG,EAAE,CAAC;AACpC,MAAM,YAAY,GAAG,yBAAU,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC,MAAM,CAAC;AACrD,MAAM,WAAW,GAAG,yBAAU,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC,KAAK,CAAC;AAEnD,uBAAuB;AACvB,+CAA+C;AAC/C,+DAA+D;AAC/D,qDAAqD;AACrD,oDAAoD;AACpD,uDAAuD;AACvD,sDAAsD;AACtD,wDAAwD;AAExD,MAAM,SAAS,GAAG,CAAC,IAAY,EAAE,EAAE;IACjC,IAAI,UAAU,IAAI,CAAC,IAAI,UAAU,GAAG,CAAC,EAAE;QACrC,+BAA+B;QAC/B,IAAI,WAAW,GAAG,GAAG,EAAE;YACrB,OAAO,IAAI,GAAG,IAAI,CAAC;SACpB;QAED,WAAW;QACX,IAAI,YAAY,GAAG,GAAG,EAAE;YACtB,OAAO,IAAI,CAAC;SACb;QAED,cAAc;QACd,IAAI,YAAY,IAAI,GAAG,IAAI,YAAY,IAAI,GAAG,EAAE;YAC9C,OAAO,IAAI,GAAG,IAAI,CAAC;SACpB;QACD,iBAAiB;QACjB,OAAO,IAAI,GAAG,IAAI,CAAC;KACpB;IAED,IAAI,UAAU,IAAI,CAAC,IAAI,UAAU,GAAG,GAAG,EAAE;QACvC,+CAA+C;QAC/C,8CAA8C;QAC9C,IAAI,WAAW,IAAI,GAAG,EAAE;YACtB,OAAO,IAAI,CAAC;SACb;QAED,0CAA0C;QAC1C,IAAI,YAAY,GAAG,GAAG,EAAE;YACtB,OAAO,IAAI,GAAG,IAAI,CAAC;YACnB,mDAAmD;YACnD,yBAAyB;SAC1B;QAED,IAAI,YAAY,IAAI,GAAG,IAAI,YAAY,IAAI,GAAG,EAAE;YAC9C,OAAO,IAAI,GAAG,GAAG,CAAC;SACnB;QAED,uBAAuB;QACvB,0CAA0C;QAC1C,OAAO,IAAI,GAAG,IAAI,CAAC;KACpB;IAED,IAAI,UAAU,IAAI,GAAG,EAAE;QACrB,+CAA+C;QAC/C,8CAA8C;QAC9C,IAAI,WAAW,IAAI,GAAG,EAAE;YACtB,OAAO,IAAI,CAAC;YACZ,6CAA6C;SAC9C;QAED,IAAI,YAAY,GAAG,GAAG,EAAE;YACtB,OAAO,IAAI,GAAG,GAAG,CAAC;YAClB,mDAAmD;YACnD,yBAAyB;SAC1B;QAED,IAAI,YAAY,IAAI,GAAG,IAAI,YAAY,IAAI,GAAG,EAAE;YAC9C,OAAO,IAAI,GAAG,IAAI,CAAC;SACpB;QAED,+BAA+B;QAC/B,OAAO,IAAI,GAAG,GAAG,CAAC;KACnB;IAED,OAAO,IAAI,CAAC;AACd,CAAC,CAAC;AAEF,kBAAe,SAAS,CAAC"}
{"version":3,"file":"normalizeText.js","sourceRoot":"","sources":["../../../../lib/helpers/normalize/normalizeText.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAEtD,MAAM,UAAU,GAAG,UAAU,CAAC,GAAG,EAAE,CAAC;AACpC,MAAM,YAAY,GAAG,UAAU,CAAC,GAAG,CAAC,QAAQ,CAAC,CA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AAC;YACZ,6CAA6C;SAC9C;QAED,IAAI,YAAY,GAAG,GAAG,EAAE;YACtB,OAAO,IAAI,GAAG,GAAG,CAAC;YAClB,mDAAmD;YACnD,yBAAyB;SAC1B;QAED,IAAI,YAAY,IAAI,GAAG,IAAI,YAAY,IAAI,GAAG,EAAE;YAC9C,OAAO,IAAI,GAAG,IAAI,CAAC;SACpB;QAED,+BAA+B;QAC/B,OAAO,IAAI,GAAG,GAAG,CAAC;KACnB;IAED,OAAO,IAAI,CAAC;AACd,CAAC,CAAC;AAEF,eAAe,SAAS,CAAC"}

@@ -1,5 +0,2 @@

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.hasDynamicIsland = exports.hasNotchOnly = exports.hasNotch = exports.getStatusBarHeight = void 0;
const react_native_1 = require("react-native");
import { Dimensions, Platform, StatusBar } from "react-native";
const DEFAULT_STATUSBAR_HEIGHT = 30;

@@ -30,6 +27,6 @@ // ? iPhone X Family

const detection = () => {
const dim = react_native_1.Dimensions.get("window");
return (react_native_1.Platform.OS === "ios" &&
!react_native_1.Platform.isPad &&
!react_native_1.Platform.isTV &&
const dim = Dimensions.get("window");
return (Platform.OS === "ios" &&
!Platform.isPad &&
!Platform.isTV &&
(isIPhone14(dim) ||

@@ -48,6 +45,6 @@ isIPhone14Pro(dim) ||

const detectionNotchOnly = () => {
const dim = react_native_1.Dimensions.get("window");
return (react_native_1.Platform.OS === "ios" &&
!react_native_1.Platform.isPad &&
!react_native_1.Platform.isTV &&
const dim = Dimensions.get("window");
return (Platform.OS === "ios" &&
!Platform.isPad &&
!Platform.isTV &&
(isIPhone14Plus(dim) ||

@@ -64,6 +61,6 @@ isIPhone14(dim) ||

const detectionForDynamicIsland = () => {
const dim = react_native_1.Dimensions.get("window");
return (react_native_1.Platform.OS === "ios" &&
!react_native_1.Platform.isPad &&
!react_native_1.Platform.isTV &&
const dim = Dimensions.get("window");
return (Platform.OS === "ios" &&
!Platform.isPad &&
!Platform.isTV &&
(isIPhone14Pro(dim) || isIPhone14ProMax(dim)));

@@ -77,14 +74,11 @@ };

const hasNotch = () => detection();
exports.hasNotch = hasNotch;
const hasNotchOnly = () => detectionNotchOnly();
exports.hasNotchOnly = hasNotchOnly;
const hasDynamicIsland = () => detectionForDynamicIsland();
exports.hasDynamicIsland = hasDynamicIsland;
const getStatusBarHeight = () => {
return (react_native_1.Platform.select({
return (Platform.select({
ios: hasNotch() ? 44 : DEFAULT_STATUSBAR_HEIGHT,
android: react_native_1.StatusBar.currentHeight || DEFAULT_STATUSBAR_HEIGHT,
android: StatusBar.currentHeight || DEFAULT_STATUSBAR_HEIGHT,
}) || DEFAULT_STATUSBAR_HEIGHT);
};
exports.getStatusBarHeight = getStatusBarHeight;
export { getStatusBarHeight, hasNotch, hasNotchOnly, hasDynamicIsland };
//# sourceMappingURL=Notch.js.map

@@ -1,1 +0,1 @@

{"version":3,"file":"Notch.js","sourceRoot":"","sources":["../../../../lib/helpers/notch/Notch.ts"],"names":[],"mappings":";;;AAAA,+CAA2E;AAC3E,MAAM,wBAAwB,GAAG,EAAE,CAAC;AACpC,oBAAoB;AACpB,MAAM,cAAc,GAAG,GAAG,CAAC;AAC3B,MAAM,kBAAkB,GAAG,GAAG,CAAC;AAC/B,MAAM,eAAe,GAAG,GAAG,CAAC;AAC5B,MAAM,kBAAkB,GAAG,GAAG,CAAC;AAC/B,MAAM,qBAAqB,GAAG,GAAG,CAAC;AAClC,MAAM,qBAAqB,GAAG,GAAG,CAAC;AAClC,MAAM,mBAAmB,GAAG,GAAG,CAAC;AAChC,MAAM,eAAe,GAAG,GAAG,CAAC;AAC5B,MAAM,mBAAmB,GAAG,GAAG,CAAC;AAChC,MAAM,kBAAkB,GAAG,GAAG,CAAC;AAC/B,MAAM,qBAAqB,GAAG,GAAG,CAAC;AAElC,MAAM,UAAU,GAAG,CAAC,GAAe,EAAE,EAAE,CAAC,GAAG,CAAC,MAAM,KAAK,eAAe,CAAC;AACvE,MAAM,SAAS,GAAG,CAAC,GAAe,EAA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AY,EAAE,CAAC,yBAAyB,EAAE,CAAC;AAEpE,MAAM,kBAAkB,GAAG,GAAW,EAAE;IACtC,OAAO,CACL,QAAQ,CAAC,MAAM,CAAC;QACd,GAAG,EAAE,QAAQ,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,wBAAwB;QAC/C,OAAO,EAAE,SAAS,CAAC,aAAa,IAAI,wBAAwB;KAC7D,CAAC,IAAI,wBAAwB,CAC/B,CAAC;AACJ,CAAC,CAAC;AAEF,OAAO,EAAE,kBAAkB,EAAE,QAAQ,EAAE,YAAY,EAAE,gBAAgB,EAAE,CAAC"}

@@ -1,6 +0,2 @@

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.numberFormat = void 0;
const numberFormat = (value, locale = "en-GB", options = {}) => new Intl.NumberFormat(locale, options).format(value);
exports.numberFormat = numberFormat;
export const numberFormat = (value, locale = "en-GB", options = {}) => new Intl.NumberFormat(locale, options).format(value);
//# sourceMappingURL=Text.js.map

@@ -1,1 +0,1 @@

{"version":3,"file":"Text.js","sourceRoot":"","sources":["../../../../lib/helpers/text/Text.ts"],"names":[],"mappings":";;;AAAO,MAAM,YAAY,GAAG,CAC1B,KAAU,EACV,SAAiB,OAAO,EACxB,UAAe,EAAE,EACjB,EAAE,CAAC,IAAI,IAAI,CAAC,YAAY,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;AAJ7C,QAAA,YAAY,gBAIiC"}
{"version":3,"file":"Text.js","sourceRoot":"","sources":["../../../../lib/helpers/text/Text.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,YAAY,GAAG,CAC1B,KAAU,EACV,SAAiB,OAAO,EACxB,UAAe,EAAE,EACjB,EAAE,CAAC,IAAI,IAAI,CAAC,YAAY,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC"}

@@ -1,5 +0,5 @@

import { isIOS, isAndroid, ScreenWidth, ScreenHeight, ScreenScale, ScreenFontScale, WindowWidth, WindowHeight, WindowScale, WindowFontScale, PlatformVersion } from "./helpers/device/DeviceInfo";
import { isIOS, isAndroid, ScreenMin, ScreenMax, vh, vw, vmin, vmax, ScreenWidth, ScreenHeight, ScreenScale, ScreenFontScale, WindowWidth, WindowHeight, WindowScale, WindowFontScale, PlatformVersion } from "./helpers/device/DeviceInfo";
import { getStatusBarHeight, hasNotch, hasNotchOnly, hasDynamicIsland } from "./helpers/notch/Notch";
import normalizeText from "./helpers/normalize/normalizeText";
import { numberFormat } from "./helpers/text/Text";
export { isIOS, isAndroid, ScreenWidth, ScreenHeight, ScreenScale, ScreenFontScale, WindowWidth, WindowHeight, WindowScale, WindowFontScale, PlatformVersion, getStatusBarHeight, hasNotch, hasNotchOnly, hasDynamicIsland, numberFormat, normalizeText, };
export { vh, vw, vmin, vmax, ScreenMin, ScreenMax, isIOS, isAndroid, ScreenWidth, ScreenHeight, ScreenScale, ScreenFontScale, WindowWidth, WindowHeight, WindowScale, WindowFontScale, PlatformVersion, getStatusBarHeight, hasNotch, hasNotchOnly, hasDynamicIsland, numberFormat, normalizeText, };

@@ -1,26 +0,6 @@

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.normalizeText = exports.numberFormat = exports.hasDynamicIsland = exports.hasNotchOnly = exports.hasNotch = exports.getStatusBarHeight = exports.PlatformVersion = exports.WindowFontScale = exports.WindowScale = exports.WindowHeight = exports.WindowWidth = exports.ScreenFontScale = exports.ScreenScale = exports.ScreenHeight = exports.ScreenWidth = exports.isAndroid = exports.isIOS = void 0;
const tslib_1 = require("tslib");
const DeviceInfo_1 = require("./helpers/device/DeviceInfo");
Object.defineProperty(exports, "isIOS", { enumerable: true, get: function () { return DeviceInfo_1.isIOS; } });
Object.defineProperty(exports, "isAndroid", { enumerable: true, get: function () { return DeviceInfo_1.isAndroid; } });
Object.defineProperty(exports, "ScreenWidth", { enumerable: true, get: function () { return DeviceInfo_1.ScreenWidth; } });
Object.defineProperty(exports, "ScreenHeight", { enumerable: true, get: function () { return DeviceInfo_1.ScreenHeight; } });
Object.defineProperty(exports, "ScreenScale", { enumerable: true, get: function () { return DeviceInfo_1.ScreenScale; } });
Object.defineProperty(exports, "ScreenFontScale", { enumerable: true, get: function () { return DeviceInfo_1.ScreenFontScale; } });
Object.defineProperty(exports, "WindowWidth", { enumerable: true, get: function () { return DeviceInfo_1.WindowWidth; } });
Object.defineProperty(exports, "WindowHeight", { enumerable: true, get: function () { return DeviceInfo_1.WindowHeight; } });
Object.defineProperty(exports, "WindowScale", { enumerable: true, get: function () { return DeviceInfo_1.WindowScale; } });
Object.defineProperty(exports, "WindowFontScale", { enumerable: true, get: function () { return DeviceInfo_1.WindowFontScale; } });
Object.defineProperty(exports, "PlatformVersion", { enumerable: true, get: function () { return DeviceInfo_1.PlatformVersion; } });
const Notch_1 = require("./helpers/notch/Notch");
Object.defineProperty(exports, "getStatusBarHeight", { enumerable: true, get: function () { return Notch_1.getStatusBarHeight; } });
Object.defineProperty(exports, "hasNotch", { enumerable: true, get: function () { return Notch_1.hasNotch; } });
Object.defineProperty(exports, "hasNotchOnly", { enumerable: true, get: function () { return Notch_1.hasNotchOnly; } });
Object.defineProperty(exports, "hasDynamicIsland", { enumerable: true, get: function () { return Notch_1.hasDynamicIsland; } });
const normalizeText_1 = tslib_1.__importDefault(require("./helpers/normalize/normalizeText"));
exports.normalizeText = normalizeText_1.default;
const Text_1 = require("./helpers/text/Text");
Object.defineProperty(exports, "numberFormat", { enumerable: true, get: function () { return Text_1.numberFormat; } });
import { isIOS, isAndroid, ScreenMin, ScreenMax, vh, vw, vmin, vmax, ScreenWidth, ScreenHeight, ScreenScale, ScreenFontScale, WindowWidth, WindowHeight, WindowScale, WindowFontScale, PlatformVersion, } from "./helpers/device/DeviceInfo";
import { getStatusBarHeight, hasNotch, hasNotchOnly, hasDynamicIsland, } from "./helpers/notch/Notch";
import normalizeText from "./helpers/normalize/normalizeText";
import { numberFormat } from "./helpers/text/Text";
export { vh, vw, vmin, vmax, ScreenMin, ScreenMax, isIOS, isAndroid, ScreenWidth, ScreenHeight, ScreenScale, ScreenFontScale, WindowWidth, WindowHeight, WindowScale, WindowFontScale, PlatformVersion, getStatusBarHeight, hasNotch, hasNotchOnly, hasDynamicIsland, numberFormat, normalizeText, };
//# sourceMappingURL=index.js.map

@@ -1,1 +0,1 @@

{"version":3,"file":"index.js","sourceRoot":"","sources":["../../lib/index.ts"],"names":[],"mappings":";;;;AAAA,4DAYqC;AAanC,sFAxBA,kBAAK,OAwBA;AACL,0FAxBA,sBAAS,OAwBA;AACT,4FAxBA,wBAAW,OAwBA;AACX,6FAxBA,yBAAY,OAwBA;AACZ,4FAxBA,wBAAW,OAwBA;AACX,gGAxBA,4BAAe,OAwBA;AACf,4FAxBA,wBAAW,OAwBA;AACX,6FAxBA,yBAAY,OAwBA;AACZ,4FAxBA,wBAAW,OAwBA;AACX,gGAxBA,4BAAe,OAwBA;AACf,gGAxBA,4BAAe,OAwBA;AArBjB,iDAK+B;AAiB7B,mGArBA,0BAAkB,OAqBA;AAClB,yFArBA,gBAAQ,OAqBA;AACR,6FArBA,oBAAY,OAqBA;AACZ,iGArBA,wBAAgB,OAqBA;AAnBlB,8FAA8D;AAqB5D,wBArBK,uBAAa,CAqBL;AAnBf,8CAAmD;AAkBjD,6FAlBO,mBAAY,OAkBP"}
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../lib/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,EACL,SAAS,EACT,SAAS,EACT,SAAS,EACT,EAAE,EACF,EAAE,EACF,IAAI,EACJ,IAAI,EACJ,WAAW,EACX,YAAY,EACZ,WAAW,EACX,eAAe,EACf,WAAW,EACX,YAAY,EACZ,WAAW,EACX,eAAe,EACf,eAAe,GAChB,MAAM,6BAA6B,CAAC;AAErC,OAAO,EACL,kBAAkB,EAClB,QAAQ,EACR,YAAY,EACZ,gBAAgB,GACjB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,aAAa,MAAM,mCAAmC,CAAC;AAE9D,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAEnD,OAAO,EACL,EAAE,EACF,EAAE,EACF,IAAI,EACJ,IAAI,EACJ,SAAS,EACT,SAAS,EACT,KAAK,EACL,SAAS,EACT,WAAW,EACX,YAAY,EACZ,WAAW,EACX,eAAe,EACf,WAAW,EACX,YAAY,EACZ,WAAW,EACX,eAAe,EACf,eAAe,EACf,kBAAkB,EAClB,QAAQ,EACR,YAAY,EACZ,gBAAgB,EAChB,YAAY,EACZ,aAAa,GACd,CAAC"}

@@ -18,3 +18,25 @@ import { Platform, Dimensions } from "react-native";

/**
* @description
* These are the dynamic calculation for the app is on the landscape or portrait mode.
*/
const ScreenMin = Math.min(ScreenWidth, ScreenHeight) || ScreenHeight;
const ScreenMax = Math.max(ScreenWidth, ScreenHeight) || ScreenWidth;
/**
* @description
* These are the viewport units for the web or mobile web who wants to use viewport units.
*/
const vh = ScreenHeight / 100;
const vw = ScreenWidth / 100;
const vmin = Math.min(vh, vw) || vh;
const vmax = Math.max(vh, vw) || vw;
export {
vh,
vw,
vmin,
vmax,
ScreenMin,
ScreenMax,
isIOS,

@@ -21,0 +43,0 @@ isAndroid,

import {
isIOS,
isAndroid,
ScreenMin,
ScreenMax,
vh,
vw,
vmin,
vmax,
ScreenWidth,

@@ -26,2 +32,8 @@ ScreenHeight,

export {
vh,
vw,
vmin,
vmax,
ScreenMin,
ScreenMax,
isIOS,

@@ -28,0 +40,0 @@ isAndroid,

{
"name": "@freakycoder/react-native-helpers",
"version": "2.0.2",
"version": "2.1.0",
"description": "All helpers in one; iPhone series support, dimensions helper, hasNotch helper, normalize text helper and text helpers for React Native with very easy use",

@@ -36,3 +36,2 @@ "keywords": [

"@commitlint/config-conventional": "^15.0.0",
"@react-native-community/eslint-config": "^2.0.0",
"@types/react": "^16.9.53",

@@ -55,8 +54,13 @@ "@types/react-native": "^0.63.25",

"prepare": "husky install",
"husky:setup": "npx husky-init && npm run husky:commitlint",
"format": "prettier --write \"src/**/*.ts\" \"src/**/*.js\"",
"lint": "tslint -p tsconfig.json",
"prettier": "cd lib && npx prettier --write . && git add .",
"husky:setup": "npx husky-init && npm run husky:commitlint && npm run husky:prettier && npm run husky:lint",
"husky:commitlint": "npx husky add .husky/commit-msg 'npx --no-install commitlint --edit'",
"semantic-release": "semantic-release",
"copy:assets": "cpx 'lib/local-assets/**' './build/dist/local-assets'",
"copy:package": "cpx '../package.json' '../build/dist/'"
"copy:package": "cpx '../package.json' '../build/dist/'",
"husky:lint": "npx husky add .husky/pre-commit 'npm run lint'",
"husky:prettier": "npx husky set .husky/pre-commit 'npm run prettier'"
}
}
+22
-16

@@ -105,15 +105,21 @@ <img alt="React Native Helpers" src="assets/logo.png" width="1050"/>

| Property | Type | Description |
| --------------- | :-----: | ------------------------------------------------------------------------------------------ |
| isIOS | boolean | returns if it is an iOS device or not |
| isAndroid | boolean | returns if it is an Android device or not |
| ScreenWidth | number | get the device's screen width |
| ScreenHeight | number | get the device's screen height |
| ScreenScale | number | get the device's screen scale ratio |
| ScreenFontScale | number | get the device's screen font scale ratio (depends on the user's device font scale setting) |
| WindowWidth | number | get the device's window width |
| WindowHeight | number | get the device's window height |
| WindowScale | number | get the device's window scale ratio |
| WindowFontScale | number | get the device's window font scale ratio (depends on the user's device font scale setting) |
| PlatformVersion | number | returns the platform version |
| Property | Type | Description |
|-----------------|:-------:|----------------------------------------------------------------------------------------------------------------------------|
| isIOS | boolean | returns if it is an iOS device or not |
| isAndroid | boolean | returns if it is an Android device or not |
| ScreenWidth | number | get the device's screen width |
| ScreenHeight | number | get the device's screen height |
| ScreenScale | number | get the device's screen scale ratio |
| ScreenFontScale | number | get the device's screen font scale ratio (depends on the user's device font scale setting) |
| WindowWidth | number | get the device's window width |
| WindowHeight | number | get the device's window height |
| WindowScale | number | get the device's window scale ratio |
| WindowFontScale | number | get the device's window font scale ratio (depends on the user's device font scale setting) |
| PlatformVersion | number | returns the platform version |
| ScreenMin | number | get the device's screen width/height which are **minimum** depend on the landscape or portrait mode |
| ScreenMax | number | get the device's screen width/height which are **maximum** depend on the landscape or portrait mode |
| vh | number | get the device's height but as a **viewport unit** |
| vw | number | get the device's width but as a **viewport unit** |
| vmin | number | get the device's screen width/height as a **viewport unit** which are **minimum** depend on the landscape or portrait mode |
| vmax | number | get the device's screen width/height as a **viewport unit** which are **maximum** depend on the landscape or portrait mode |

@@ -125,3 +131,3 @@ ## DeviceInfo Props

| Property | Type | Description |
| ------------------ | :------: | ----------------------------------------------------------------------------------------- |
|--------------------|:--------:|-------------------------------------------------------------------------------------------|
| hasNotch | function | returns if the device has notch (returns true for dynamic island!) |

@@ -135,3 +141,3 @@ | hasNotchOnly | function | returns if the device has notch only, it does not detect if the device has dynamic island |

| Property | Type | Description |
| --------- | :--------------: | -------------------------------- |
|-----------|:----------------:|----------------------------------|
| normalize | function(number) | returns the normalized font size |

@@ -142,3 +148,3 @@

| Property | Type | Description |
| ------------ | :------------------------------: | ----------------------------------------------------------- |
|--------------|:--------------------------------:|-------------------------------------------------------------|
| numberFormat | function(value, locale, options) | returns the number formatted font with its given parameters |

@@ -145,0 +151,0 @@

module.exports = {
root: true,
extends: [
"eslint:recommended",
"plugin:react/recommended",
"plugin:@typescript-eslint/recommended",
"@react-native-community",
"prettier",
],
ignorePatterns: [
"**/*/*.js",
"*.js",
"*.svg",
"*.json",
"*.png",
"package.json",
"package-lock.json",
],
parser: "@typescript-eslint/parser",
plugins: [
"import",
"react",
"react-native",
"prettier",
"react-hooks",
"@typescript-eslint",
"promise",
"jest",2
"unused-imports",
],
env: {
browser: true,
es2021: true,
"jest/globals": true,
"react-native/react-native": true,
},
settings: {
"import/resolver": {
node: {
extensions: [
".js",
".jsx",
".ts",
".tsx",
".d.ts",
".android.js",
".android.jsx",
".android.ts",
".android.tsx",
".ios.js",
".ios.jsx",
".ios.ts",
".ios.tsx",
".web.js",
".web.jsx",
".web.ts",
".web.tsx",
],
},
},
},
rules: {
quotes: [
"error",
"double",
{
avoidEscape: true,
},
],
"import/extensions": [
"error",
"never",
{
svg: "always",
model: "always",
style: "always",
png: "always",
jpg: "always",
json: "always",
constant: "always",
},
],
"no-useless-catch": 0,
"react-hooks/exhaustive-deps": 0,
"max-len": ["error", 120],
"@typescript-eslint/ban-ts-comment": 1,
"@typescript-eslint/no-empty-function": 0,
"@typescript-eslint/no-explicit-any": 1,
"@typescript-eslint/explicit-module-boundary-types": 0,
"react/jsx-filename-extension": ["error", { extensions: [".tsx"] }],
"react-native/no-unused-styles": 2,
"react-native/split-platform-components": 2,
"react-native/no-inline-styles": 0,
"react-native/no-color-literals": 0,
"react-native/no-raw-text": 0,
"import/no-extraneous-dependencies": 2,
"import/no-named-as-default-member": 2,
"import/order": 0,
"import/no-duplicates": 2,
"import/no-useless-path-segments": 2,
"import/no-cycle": 2,
"import/prefer-default-export": 0,
"import/no-anonymous-default-export": 0,
"import/named": 0,
"@typescript-eslint/no-empty-interface": 0,
"import/namespace": 0,
"import/default": 0,
"import/no-named-as-default": 0,
"import/no-unused-modules": 0,
"import/no-deprecated": 0,
"@typescript-eslint/indent": 0,
"react-hooks/rules-of-hooks": 2,
camelcase: 2,
"prefer-destructuring": 2,
"no-nested-ternary": 2,
"prettier/prettier": [
"error",
{
endOfLine: "auto",
},
],
},
};
{
"name": "@freakycoder/react-native-helpers",
"version": "2.0.0",
"description": "All helpers in one; iPhone series support, dimensions helper, hasNotch helper, normalize text helper and text helpers for React Native with very easy use",
"keywords": [
"ios",
"width",
"notch",
"screen",
"helper",
"height",
"iPhoneX",
"android",
"helpers",
"normalize",
"normalizeText",
"FreakyCoder",
"freakycoder",
"kuray",
"Kuray",
"react",
"react-native",
"javascript",
"ui-lib",
"rn"
],
"homepage": "https://www.freakycoder.com",
"bugs": "https://github.com/WrathChaos/react-native-helpers/issues",
"main": "./build/dist/index.js",
"repository": "git@github.com:WrathChaos/react-native-helpers.git",
"author": "Kuray (FreakyCoder) <kurayogun@gmail.com>",
"license": "MIT",
"scripts": {
"build": "cd lib && tsc && cp ../package.json ../build/dist/ && Echo Build completed!",
"format": "prettier --write \"src/**/*.ts\" \"src/**/*.js\"",
"lint": "tslint -p tsconfig.json",
"version": "npm run format && git add -A src",
"postversion": "git push && git push --tags"
},
"peerDependencies": {
"react": ">= 16.x.x",
"react-native": ">= 0.55.x"
},
"devDependencies": {
"@types/react": "^18.0.0",
"@types/react-native": "^0.70.0",
"react-native-typescript-transformer": "^1.2.13",
"typescript": "^4.0.3",
"@react-native-community/eslint-config": "^3.0.0",
"eslint": "^8.0.0",
"eslint-config-airbnb": "^19.0.0",
"husky": "^8.0.1",
"lint-staged": "^13.0.0",
"prettier": "^2.1.2"
},
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
},
"lint-staged": {
"./src/*.{js,jsx,ts,tsx}": [
"npx prettier --write",
"eslint src/*.js --fix-dry-run"
]
}
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet