{"id":4426,"url":"https://github.com/heyman333/react-native-responsive-fontsize","last_synced_at":"2025-05-14T07:08:09.572Z","repository":{"id":32013011,"uuid":"130639482","full_name":"heyman333/react-native-responsive-fontSize","owner":"heyman333","description":"🔠 Responsive fontSize based on screen-size of the device in React-Native","archived":false,"fork":false,"pushed_at":"2025-01-13T06:21:14.000Z","size":1440,"stargazers_count":678,"open_issues_count":7,"forks_count":37,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-04-13T13:12:29.669Z","etag":null,"topics":["font","fontsize","git","github","react","react-native","reponsive"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/heyman333.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-04-23T04:21:03.000Z","updated_at":"2025-04-03T06:40:05.000Z","dependencies_parsed_at":"2025-02-08T18:00:27.336Z","dependency_job_id":"98cef158-7d09-41d3-8230-ce3878560f86","html_url":"https://github.com/heyman333/react-native-responsive-fontSize","commit_stats":null,"previous_names":[],"tags_count":14,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/heyman333%2Freact-native-responsive-fontSize","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/heyman333%2Freact-native-responsive-fontSize/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/heyman333%2Freact-native-responsive-fontSize/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/heyman333%2Freact-native-responsive-fontSize/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/heyman333","download_url":"https://codeload.github.com/heyman333/react-native-responsive-fontSize/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254092776,"owners_count":22013290,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["font","fontsize","git","github","react","react-native","reponsive"],"created_at":"2024-01-05T20:17:11.531Z","updated_at":"2025-05-14T07:08:09.513Z","avatar_url":"https://github.com/heyman333.png","language":"JavaScript","funding_links":[],"categories":["Components"],"sub_categories":["Text \u0026 Rich Content"],"readme":"\u003cimg src=\"images/main.png\" alt=\"main image\"\u003e\n\n# react-native-responsive-fontsize\n\n[![PRs Welcome](https://img.shields.io/badge/PRs-Welcome-brightgreen.svg)](https://github.com/heyman333/react-native-responsive-fontSize/pulls)\n[![Platform](https://img.shields.io/badge/platform-react--native-lightgrey.svg)](http://facebook.github.io/react-native/)\n[![License](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/heyman333/react-native-responsive-fontSize/blob/master/LICENSE) [![Greenkeeper badge](https://badges.greenkeeper.io/heyman333/react-native-responsive-fontSize.svg)](https://greenkeeper.io/)\n\u003ca href=\"https://www.npmjs.com/package/react-native-responsive-fontsize\"\u003e\n\u003cimg alt=\"npm version\" src=\"http://img.shields.io/npm/v/react-native-responsive-fontsize.svg?style=flat-square\"\u003e\n\u003c/a\u003e\n\u003ca href=\"https://www.npmjs.com/package/react-native-responsive-fontsize\"\u003e\n\u003cimg src=\"http://img.shields.io/npm/dm/react-native-responsive-fontsize.svg?style=flat-square\"\u003e\n\u003c/a\u003e\n\n\u003cstrong\u003eUse this library if you have a small problem with the font size 🎉\u003c/strong\u003e\n\n\u003chr /\u003e\n\n#### How to install\n\n```shell\nyarn add react-native-responsive-fontsize\n# or\nnpm install react-native-responsive-fontsize --save\n```\n\n#### How it looks on different device sizes\n\n|                                                               iPhone SE                                                                |                                                               iPhone X                                                                |\n| :------------------------------------------------------------------------------------------------------------------------------------: | :-----------------------------------------------------------------------------------------------------------------------------------: |\n| \u003cimg src=\"https://raw.githubusercontent.com/heyman333/react-native-responsive-fontSize/master/images/SE.png\" width=\"320\" height=\"568\"\u003e | \u003cimg src=\"https://raw.githubusercontent.com/heyman333/react-native-responsive-fontSize/master/images/X.png\" width=\"385\" height=\"812\"\u003e |\n\n#### Methods\n\n|              |                  arguments                   | Description                                                                                         |\n| :----------: | :------------------------------------------: | --------------------------------------------------------------------------------------------------- |\n| RFPercentage |               percent: number                | The font size is calculated as a percentage of the height(`width` in landscape mode) of the device. |\n|   RFValue    | value: number, standardScreenHeight?: number | The font size is calculated based on standardScreenHeight and passed value                          |\n\n- when using `RFValue`'s `standardScreenHeight`\n  - default standardScreenHeight is `680`\n  - In landscape mode, please pass the `screen width`\n\n#### Usage\n\n```js\nimport { RFPercentage, RFValue } from \"react-native-responsive-fontsize\";\n\nconst styles = StyleSheet.create({\n  welcome: {\n    fontSize: RFValue(24, 580) // second argument is standardScreenHeight(optional),\n    textAlign: \"center\",\n    margin: 10,\n  },\n  instructions: {\n    textAlign: \"center\",\n    color: \"#333333\",\n    marginBottom: 5,\n    fontSize: RFPercentage(5),\n  },\n});\n```\n\n#### Changelog\n\n[releases](https://github.com/heyman333/react-native-responsive-fontSize/releases)\n\n#### Load map (I'm waiting for your help)\n\n- [x] support landscape mode\n- [x] make `test code`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fheyman333%2Freact-native-responsive-fontsize","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fheyman333%2Freact-native-responsive-fontsize","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fheyman333%2Freact-native-responsive-fontsize/lists"}