as

Settings
Sign out
Notifications
Alexa
亚马逊应用商店
AWS
文档
Support
Contact Us
My Cases
新手入门
设计和开发
应用发布
参考
支持
跳转到主要内容
useScalingMultiplier(originalSize: number, scalingProps: ScalingProps): number
Hook to retrieve the UI scaling multiplier value based on original size and scaling properties. The scaling multiplier can be applied to values that have different scaling properties, but should be scaled at the same rate, like the height and width of an image. In most cases, developers should prefer the useScaledSize hook.

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 scaling multiplier
最后修改于 2026年8月25日