{"id":40354763,"url":"https://github.com/cdek-it/react-native-ui-kit","last_synced_at":"2026-04-02T21:10:14.010Z","repository":{"id":319223349,"uuid":"1073469832","full_name":"cdek-it/react-native-ui-kit","owner":"cdek-it","description":"Библиотека компонентов на базе React Native","archived":false,"fork":false,"pushed_at":"2025-12-23T17:48:57.000Z","size":2424,"stargazers_count":3,"open_issues_count":2,"forks_count":2,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-12-25T07:47:24.714Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/@cdek-it/react-native-ui-kit","language":"TypeScript","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/cdek-it.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":"AGENTS.md","dco":null,"cla":null}},"created_at":"2025-10-10T06:51:22.000Z","updated_at":"2025-12-23T17:49:00.000Z","dependencies_parsed_at":null,"dependency_job_id":"4dcec153-696d-4f5f-b844-7c2172c925b9","html_url":"https://github.com/cdek-it/react-native-ui-kit","commit_stats":null,"previous_names":["cdek-it/react-native"],"tags_count":17,"template":false,"template_full_name":null,"purl":"pkg:github/cdek-it/react-native-ui-kit","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cdek-it%2Freact-native-ui-kit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cdek-it%2Freact-native-ui-kit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cdek-it%2Freact-native-ui-kit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cdek-it%2Freact-native-ui-kit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cdek-it","download_url":"https://codeload.github.com/cdek-it/react-native-ui-kit/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cdek-it%2Freact-native-ui-kit/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28601279,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-20T09:39:28.479Z","status":"ssl_error","status_checked_at":"2026-01-20T09:38:10.511Z","response_time":117,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5: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":[],"created_at":"2026-01-20T10:00:34.860Z","updated_at":"2026-01-20T10:01:18.685Z","avatar_url":"https://github.com/cdek-it.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# react-native-ui-kit\n\nРепозиторий UI kit на основе Prime Faces, Prime Flex для React Native\n\n## Installation\n\n**Yarn**\n\n```shell\nyarn add \\\n  react \\\n  react-native \\\n  react-native-svg \\\n  react-native-reanimated\n```\n\n```shell\nyarn add @cdek-it/react-native-ui-kit\n```\n\n**npm**\n\n```shell\nnpm i \\\n  react \\\n  react-native \\\n  react-native-svg \\\n  react-native-reanimated\n```\n\n```shell\nnpm i @cdek-it/react-native-ui-kit\n```\n\n## Шрифты\n\nUI kit использует следующие виды шрифтов.\n\n| Тип шрифта  | Используемые начертания                        | Рекомендуемый шрифт | Рекомендуемый аналог |\n| ----------- | ---------------------------------------------- | ------------------- | -------------------- |\n| `primary`   | – regular\u003cbr/\u003e– demibold\u003cbr/\u003e– demibold italic | TT Fellows          | PT Sans              |\n| `secondary` | – regular\u003cbr/\u003e– bold                           | PT Sans             | —                    |\n\nИсходники шрифтов не поставляются вместе с пакетом, их требуется подключать\nотдельно. После подключения шрифтов в проект, необходимо указать их в\n`ThemeContextProvider`.\n\n```tsx\n\u003cThemeContextProvider\n  fonts={{ primary: 'MyFont', secondary: 'MySecondaryFont' }}\n/\u003e\n```\n\n### Пример подключения шрифтов с помощью expo-fonts через плагин\n\n```ts\n[\n  'expo-font',\n  {\n    android: {\n      fonts: [\n        {\n          fontFamily: 'TT Fellows',\n          fontDefinitions: [\n            {\n              path: './assets/fonts/TTFellows-DemiBoldItalic.ttf',\n              weight: 600,\n              style: 'italic',\n            },\n            {\n              path: './assets/fonts/TTFellows-DemiBold.ttf',\n              weight: 600,\n            },\n            { path: './assets/fonts/TTFellows-Regular.ttf', weight: 400 },\n          ],\n        },\n        {\n          fontFamily: 'PT Sans',\n          fontDefinitions: [\n            { path: './assets/fonts/PTSans-Bold.ttf', weight: 700 },\n            { path: './assets/fonts/PTSans-Regular.ttf', weight: 400 },\n          ],\n        },\n      ],\n    },\n  },\n],\n```\n\n### Ручная установка\n\n#### Android\n\n1. Скопировать нужные шрифты в директорию `android/app/src/main/res/font`\n2. Создать XML-ресурс для каждого шрифта\n\n   ```xml\n    \u003c!-- xml_pt_sans.xml --\u003e\n   \u003cfont-family xmlns:app=\"http://schemas.android.com/apk/res-auto\"\u003e\n     \u003cfont app:font=\"@font/pt_sans_bold\" app:fontStyle=\"normal\" app:fontWeight=\"700\"/\u003e\n     \u003cfont app:font=\"@font/pt_sans_regular\" app:fontStyle=\"normal\" app:fontWeight=\"400\"/\u003e\n   \u003c/font-family\u003e\n   ```\n\n   ```xml\n   \u003c!-- xml_tt_fellows.xml --\u003e\n   \u003cfont-family xmlns:app=\"http://schemas.android.com/apk/res-auto\"\u003e\n   \u003cfont app:font=\"@font/tt_fellows_demi_bold_italic\" app:fontStyle=\"italic\" app:fontWeight=\"600\"/\u003e\n   \u003cfont app:font=\"@font/tt_fellows_demi_bold\" app:fontStyle=\"normal\" app:fontWeight=\"600\"/\u003e\n   \u003cfont app:font=\"@font/tt_fellows_regular\" app:fontStyle=\"normal\" app:fontWeight=\"400\"/\u003e\n   \u003c/font-family\u003e\n   ```\n\n3. Добавить в метод `onCreate()` класса\n   [MainApplication](./android/app/src/main/java/ru/cdek/uikit/prime/MainApplication.kt)\n   следующий код:\n\n   ```kotlin\n    override fun onCreate() {\n      super.onCreate()\n\n      //подключение шрифтов\n      ReactFontManager.getInstance().addCustomFont(this, \"TT Fellows\", R.font.xml_tt_fellows)\n      ReactFontManager.getInstance().addCustomFont(this, \"PT Sans\", R.font.xml_pt_sans)\n\n      // остальной код...\n    }\n   ```\n\n#### iOS\n\n1. Добавить шрифты в проект Xcode\n\n   Для этого открыть Xcode вашего проекта, создать новую группу Resources\n   (опционально), перетащить туда файлы с шрифтами.\n\n   Можно выбрать Copy files или Reference files, на ваш выбор\n\n   ![xcode-installation](./xcode-installation.png)\n\n2. Добавить информацию о шрифтах в [Info.plist](./ios/CDEKUI/Info.plist)\n\n   ```xml\n   \u003ckey\u003eUIAppFonts\u003c/key\u003e\n   \u003carray\u003e\n   \u003cstring\u003eTTFellows-DemiBold.ttf\u003c/string\u003e\n   \u003cstring\u003eTTFellows-DemiBoldItalic.ttf\u003c/string\u003e\n   \u003cstring\u003eTTFellows-Regular.ttf\u003c/string\u003e\n   \u003cstring\u003ePTSans-Bold.ttf\u003c/string\u003e\n   \u003cstring\u003ePTSans-Regular.ttf\u003c/string\u003e\n   \u003c/array\u003e\n   ```\n\n## Dependencies\n\nДля использования данной библиотеки необходимо:\n\n- react версии - начиная с 18 major версии (от 18.0.0)\n- react-native - любой версии(оптимально - от 0.74)\n- @tabler/icons-react-native - начиная с 3 major версии(от 3.0.0)\n- react-native-svg - начиная с 15 major версии(от 15.0.0)\n- react-native-reanimated - начиная с 3 major версии(от 3.0.0)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcdek-it%2Freact-native-ui-kit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcdek-it%2Freact-native-ui-kit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcdek-it%2Freact-native-ui-kit/lists"}