mirror of
https://github.com/zoriya/yoshiki.git
synced 2025-12-06 07:06:13 +00:00
Fix rem typing
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "yoshiki",
|
||||
"version": "0.2.10",
|
||||
"version": "0.2.11",
|
||||
"author": "Zoe Roux <zoe.roux@sdg.moe> (https://github.com/AnonymusRaccoon)",
|
||||
"license": "MIT",
|
||||
"keywords": [
|
||||
|
||||
@@ -13,7 +13,7 @@ export const em = Platform.OS === "web"
|
||||
: (value: number): number => PixelRatio.getFontScale() * 16 * value;
|
||||
// prettier-ignore
|
||||
export const rem = Platform.OS === "web"
|
||||
? (value: number) => `${value}rem`
|
||||
? (value: number): number => `${value}rem` as unknown as number
|
||||
: em;
|
||||
// prettier-ignore
|
||||
export const vw = Platform.OS === "web"
|
||||
|
||||
Reference in New Issue
Block a user