mirror of
https://github.com/zoriya/yoshiki.git
synced 2025-12-06 07:06:13 +00:00
Make percent method type follow new DimensionType from RN
This commit is contained in:
@@ -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": [
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user