@abhlabs/rn-helpers 中文文档教程
@abhlabs/rn-helpers
React Native 的助手。
Contents
Installation
使用 npm:
npm install --save @abhlabs/rn-helpers
或使用 yarn:
yarn add @abhlabs/rn-helpers
API
Method | Return Type | iOS | Android | Windows | Web |
---|
| normalize() | number
| ✅ | ✅ | ❌ | ❌ |
=======
normalize()
将大小标准化为在所有设备上看起来都一样。
Examples
import {normalize} from '@abhlabs/rn-helpers';
normalize(15);
normalize(15, 320);
Contributing
请参阅贡献指南
。
@abhlabs/rn-helpers
Helpers for React Native.
Contents
Installation
Using npm:
npm install --save @abhlabs/rn-helpers
or using yarn:
yarn add @abhlabs/rn-helpers
???? API
Method | Return Type | iOS | Android | Windows | Web |
---|
| normalize() | number
| ✅ | ✅ | ❌ | ❌ |
=======
normalize()
Normalizes the size to look same on all devices.
Examples
import {normalize} from '@abhlabs/rn-helpers';
normalize(15);
normalize(15, 320);
???? Contributing
Please see the contributing guide
.