{"id":16193748,"url":"https://github.com/chilijung/react-native-stylesheet-normalize","last_synced_at":"2025-06-29T15:05:01.815Z","repository":{"id":57340477,"uuid":"99210426","full_name":"chilijung/react-native-stylesheet-normalize","owner":"chilijung","description":"normalize fontSize in different devices","archived":false,"fork":false,"pushed_at":"2018-03-03T14:50:18.000Z","size":69,"stargazers_count":6,"open_issues_count":1,"forks_count":0,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-06-13T15:17:12.517Z","etag":null,"topics":["normalize","react-native","stylesheets"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/chilijung.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-08-03T08:37:21.000Z","updated_at":"2019-09-18T22:05:24.000Z","dependencies_parsed_at":"2022-09-07T10:12:53.974Z","dependency_job_id":null,"html_url":"https://github.com/chilijung/react-native-stylesheet-normalize","commit_stats":null,"previous_names":["canner/react-native-stylesheet-normalize"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/chilijung/react-native-stylesheet-normalize","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chilijung%2Freact-native-stylesheet-normalize","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chilijung%2Freact-native-stylesheet-normalize/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chilijung%2Freact-native-stylesheet-normalize/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chilijung%2Freact-native-stylesheet-normalize/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chilijung","download_url":"https://codeload.github.com/chilijung/react-native-stylesheet-normalize/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chilijung%2Freact-native-stylesheet-normalize/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262614456,"owners_count":23337277,"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":["normalize","react-native","stylesheets"],"created_at":"2024-10-10T08:16:28.122Z","updated_at":"2025-06-29T15:05:01.785Z","avatar_url":"https://github.com/chilijung.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# react-native-styleSheet-normalize\n\n[![Build Status](https://travis-ci.org/Canner/react-native-stylesheet-normalize.svg?branch=master)](https://travis-ci.org/Canner/react-native-stylesheet-normalize)\n\nnormalize fontSize in different devices\n\n## Install\n\n```\nyarn add react-native-stylesheet-normalize\n```\n\n\n## Why \n\nIn different devices there are different `pixelRatio`, `width` and `height`. So appearance should not be always the same, the appearance should adapt it's fontSize to match user's device.  Use `normalizeText` extract from `react-native-elements` (see [here](https://github.com/react-native-training/react-native-elements/blob/master/src/helpers/normalizeText.js)).\n\n\n## Usage\n\njust replace your `StyleSheet.create` to `StyleSheetNormalize.create` and that's it!\n\n\n```js\n\nimport StyleSheetNormalize from 'react-native-stylesheet-normalize';\n\n\nconst styles = StyleSheetNormalize.create({\n  // your styles here\n  // all `fontSize` value will wrap with `normalize(\u003cfontSize value\u003e)`\n});\n```\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchilijung%2Freact-native-stylesheet-normalize","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchilijung%2Freact-native-stylesheet-normalize","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchilijung%2Freact-native-stylesheet-normalize/lists"}