Skip to content

Commit

Permalink
update readme (#17)
Browse files Browse the repository at this point in the history
  • Loading branch information
heyman333 authored Nov 18, 2019
1 parent 4440fa5 commit a057479
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,14 @@ npm install react-native-responsive-fontsize --save

#### Methods

| | arguments | Description |
| :----------: | :------------------------------------------: | :--------------------------------------------------------------------------------------------------------------------------------------------------------------------: |
| RFPercentage | percent: number | The font size is calculated as a percentage of the height of the device. |
| RFValue | value: number, standardScreenHeight?: number | The font size is calculated based on standardScreenHeight and passed value ※ `default standardScreenHeight is 680``In landscape mode, please pass the screen width` |
| | arguments | Description |
| :----------: | :------------------------------------------: | --------------------------------------------------------------------------------------------------- |
| RFPercentage | percent: number | The font size is calculated as a percentage of the height(`width` in landscape mode) of the device. |
| RFValue | value: number, standardScreenHeight?: number | The font size is calculated based on standardScreenHeight and passed value |

- when using `RFValue`'s `standardScreenHeight`
- default standardScreenHeight is `680`
- In landscape mode, please pass the `screen width`

#### Usage

Expand Down

0 comments on commit a057479

Please sign in to comment.