as

Settings
Sign out
Notifications
Alexa
亚马逊应用商店
Ring
AWS
文档
Support
Contact Us
My Cases
新手入门
设计和开发
应用发布
参考
支持
感谢您的访问。此页面目前仅提供英语版本。我们正在开发中文版本。谢谢您的理解。

useScaledSize

useScaledSize(originalSize: number, scalingProps: ScalingProps): number

Hook to retrieve the UI scaled size value based on original size and scaling properties.

Parameters

originalSize

number

The original size to scale (in DIP if PLATFORM_DENSITY_INDEPENDENT_PIXEL is enabled, or in physical pixels otherwise)

scalingProps

ScalingProps

Properties that define how scaling should be applied

Returns

number

The scaled size


Last updated: Jul 22, 2026