{"id":16667101,"url":"https://github.com/fiberjw/umiko","last_synced_at":"2026-04-13T05:41:54.112Z","repository":{"id":112032630,"uuid":"260345864","full_name":"FiberJW/umiko","owner":"FiberJW","description":" Font weights in React Native, but if they actually worked correctly. ","archived":false,"fork":false,"pushed_at":"2020-07-20T13:11:00.000Z","size":3550,"stargazers_count":1,"open_issues_count":2,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-12-30T12:35:16.783Z","etag":null,"topics":["expo","react","react-native","typography"],"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/FiberJW.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-05-01T00:14:26.000Z","updated_at":"2020-05-02T04:14:00.000Z","dependencies_parsed_at":null,"dependency_job_id":"f880fc92-ada3-40ea-83b1-ca38ce6e0df9","html_url":"https://github.com/FiberJW/umiko","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/FiberJW/umiko","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FiberJW%2Fumiko","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FiberJW%2Fumiko/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FiberJW%2Fumiko/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FiberJW%2Fumiko/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/FiberJW","download_url":"https://codeload.github.com/FiberJW/umiko/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FiberJW%2Fumiko/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31741541,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-13T05:13:27.074Z","status":"ssl_error","status_checked_at":"2026-04-13T05:13:25.150Z","response_time":93,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["expo","react","react-native","typography"],"created_at":"2024-10-12T11:13:09.739Z","updated_at":"2026-04-13T05:41:54.085Z","avatar_url":"https://github.com/FiberJW.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n  \u003cimg alt=\"banner\" src=\"./banner.gif\"\u003e\n\u003c/p\u003e\n\n\u003ch3 align=\"center\" style=\"font-weight:600\"\u003e\n\n`umiko`\n\n\u003c/h3\u003e\n\n\u003cp align=\"center\"\u003e\n  Font weights in React Native, but if they actually worked correctly.\n\u003c/p\u003e\n\n---\n\n\u003cdiv align=\"center\"\u003e\n\n[![supports iOS](https://img.shields.io/badge/iOS-4630EB.svg?style=flat-square\u0026logo=APPLE\u0026labelColor=999999\u0026logoColor=fff)](https://github.com/expo/expo)\n[![supports Android](https://img.shields.io/badge/Android-4630EB.svg?style=flat-square\u0026logo=ANDROID\u0026labelColor=A4C639\u0026logoColor=fff)](https://github.com/expo/expo)\n[![supports web](https://img.shields.io/badge/web-4630EB.svg?style=flat-square\u0026logo=GOOGLE-CHROME\u0026labelColor=4285F4\u0026logoColor=fff)](https://github.com/expo/expo)\n\n\u003c/div\u003e\n\n## NANI??\n\nThis library was inspired by the realization that `expo-fonts` can load fonts from remote URLs and that when you set up fonts in your Expo/RN app, you have to do more ceremony than you have to do on the web.\n\nIn RN, you have to specify a different `fontFamily` for different weights of the same typeface rather than just being able to specify a `fontWeight` and resolve to the right file as you are able to do on the web with `@font-face` in CSS.\n\nThe initial version of the library will support `Inter`, but hopefully it's simple enough for you to be able to PR in other typefaces that you want to use this way easily.\n\n## Example\n\n```tsx\nimport React from \"react\";\nimport { ScrollView, StyleSheet } from \"react-native\";\n\nimport { useTypefaces, Text } from \"umiko\";\n\nexport default function App() {\n  const fontsLoaded = useTypefaces({ Inter: true });\n\n  return fontsLoaded ? (\n    \u003cScrollView\n      style={{ flex: 1, marginVertical: 48 }}\n      contentContainerStyle={{ justifyContent: \"center\", alignItems: \"center\" }}\n    \u003e\n      {[\n        \"normal\",\n        \"bold\",\n        \"100\",\n        \"200\",\n        \"300\",\n        \"400\",\n        \"500\",\n        \"600\",\n        \"700\",\n        \"800\",\n        \"900\",\n      ].map((weight) =\u003e (\n        \u003cText\n          key={weight}\n          style={{\n            fontFamily: \"Inter\",\n            fontWeight: weight,\n            fontSize: 48,\n          }}\n        \u003e\n          Inter {weight}\n        \u003c/Text\u003e\n      ))}\n    \u003c/ScrollView\u003e\n  ) : null;\n}\n```\n\n\u003cp align=\"center\"\u003e\n  \u003cimg alt=\"example screenshot\" src=\"./screenshot.jpeg\"\u003e\n\u003c/p\u003e\n\nCheck out the [demo](./packages/demo/App.tsx) to learn more about how to use it.\n\n## Caveats\n\n- You must `import { Text } from 'umiko';` to get proper font usage.\n- Nesting `\u003cText\u003e` components doesn't inherit styles from its parent, so you must specify styles for each `Text`.\n- This only supports inline styles. Registering styles from `StyleSheet.create` will result in an error.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffiberjw%2Fumiko","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffiberjw%2Fumiko","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffiberjw%2Fumiko/lists"}