Make percent method type follow new DimensionType from RN

This commit is contained in:
2023-08-09 17:51:29 +09:00
parent 9737ba0cb5
commit c18ebfc0f4
2 changed files with 2 additions and 2 deletions

View File

@@ -1,6 +1,6 @@
{
"name": "yoshiki",
"version": "1.2.3",
"version": "1.2.4",
"author": "Zoe Roux <zoe.roux@sdg.moe> (https://github.com/zoriya)",
"license": "MIT",
"keywords": [

View File

@@ -10,7 +10,7 @@ export const px =
? (value: number): number => `${value}px` as unknown as number
: (value: number): number => value;
export const percent = (value: number) => `${value}%`;
export const percent = (value: number) => `${value}%` as const;
export const em =
Platform.OS === "web"