npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@cdek-it/react-native-ui-kit

v1.2.1

Published

UI kit на основе Prime Faces, Prime Flex для React Native

Readme

react-native-ui-kit

Репозиторий UI kit на основе Prime Faces, Prime Flex для React Native

Installation

Yarn

yarn add \
  react \
  react-native \
  react-native-svg \
  react-native-reanimated
yarn add @cdek-it/react-native-ui-kit

npm

npm i \
  react \
  react-native \
  react-native-svg \
  react-native-reanimated
npm i @cdek-it/react-native-ui-kit

Шрифты

UI kit использует следующие виды шрифтов.

| Тип шрифта | Используемые начертания | Рекомендуемый шрифт | Рекомендуемый аналог | | ----------- | ---------------------------------------------- | ------------------- | -------------------- | | primary | – regular– demibold– demibold italic | TT Fellows | Noto Sans | | secondary | – regular– bold | Noto Sans | — |

Исходники шрифтов не поставляются вместе с пакетом, их требуется подключать отдельно. После подключения шрифтов в проект, необходимо указать их в ThemeContextProvider.

<ThemeContextProvider
  fonts={{ primary: 'MyFont', secondary: 'MySecondaryFont' }}
/>

После этого шрифты доступны через useUnistyles().theme.fonts или прямо в StyleSheet.create(({ fonts }) => ...).

ThemeContextProvider только настраивает темы и шрифты для unistyles. ThemeContext остается пустым и всегда имеет значение null.

Провайдер также принимает lightTheme и darkTheme, если нужно переопределить темы целиком.

Пример подключения шрифтов с помощью expo-fonts через плагин

[
  'expo-font',
  {
    android: {
      fonts: [
        {
          fontFamily: 'TT Fellows',
          fontDefinitions: [
            {
              path: './assets/fonts/TTFellows-DemiBoldItalic.ttf',
              weight: 600,
              style: 'italic',
            },
            {
              path: './assets/fonts/TTFellows-DemiBold.ttf',
              weight: 600,
            },
            { path: './assets/fonts/TTFellows-Regular.ttf', weight: 400 },
          ],
        },
        {
          fontFamily: 'Noto Sans',
          fontDefinitions: [
            { path: './assets/NotoSans-Bold.ttf', weight: 700 },
            { path: './assets/NotoSans-Regular.ttf', weight: 400 },
          ],
        },
      ],
    },
  },
],

Ручная установка

Android

  1. Скопировать нужные шрифты в директорию android/app/src/main/res/font

  2. Создать XML-ресурс для каждого шрифта

     <!-- xml_noto_sans.xml -->
    <font-family xmlns:app="http://schemas.android.com/apk/res-auto">
     <font app:font="@font/noto_sans_bold" app:fontStyle="normal" app:fontWeight="700"/>
     <font app:font="@font/noto_sans_regular" app:fontStyle="normal" app:fontWeight="400"/>
    </font-family>
    <!-- xml_tt_fellows.xml -->
    <font-family xmlns:app="http://schemas.android.com/apk/res-auto">
     <font app:font="@font/tt_fellows_demi_bold_italic" app:fontStyle="italic" app:fontWeight="600"/>
     <font app:font="@font/tt_fellows_demi_bold" app:fontStyle="normal" app:fontWeight="600"/>
     <font app:font="@font/tt_fellows_regular" app:fontStyle="normal" app:fontWeight="400"/>
    </font-family>
  3. Добавить в метод onCreate() класса MainApplication следующий код:

     override fun onCreate() {
       super.onCreate()
    
       //подключение шрифтов
       ReactFontManager.getInstance().addCustomFont(this, "TT Fellows", R.font.xml_tt_fellows)
       ReactFontManager.getInstance().addCustomFont(this, "Noto Sans", R.font.xml_noto_sans)
    
       // остальной код...
     }

iOS

  1. Добавить шрифты в проект Xcode

    Для этого открыть Xcode вашего проекта, создать новую группу Resources (опционально), перетащить туда файлы с шрифтами.

    Можно выбрать Copy files или Reference files, на ваш выбор

    xcode-installation

  2. Добавить информацию о шрифтах в Info.plist

    <key>UIAppFonts</key>
    <array>
     <string>TTFellows-DemiBold.ttf</string>
     <string>TTFellows-DemiBoldItalic.ttf</string>
     <string>TTFellows-Regular.ttf</string>
     <string>NotoSans-Regular.ttf</string>
     <string>NotoSans-Bold.ttf</string>
    </array>

Dependencies

Для использования данной библиотеки необходимо:

  • react версии - начиная с 18 major версии (от 18.0.0)
  • react-native - любой версии(оптимально - от 0.74)
  • @tabler/icons-react-native - начиная с 3 major версии(от 3.0.0)
  • react-native-svg - начиная с 15 major версии(от 15.0.0)
  • react-native-reanimated - начиная с 3 major версии(от 3.0.0)