Skip to content

Task DS-549: [React Native] Поддержка UniStyles: Базовая конфигурация#37

Closed
ragozin-nikita wants to merge 6 commits into
mainfrom
feature/DS-549
Closed

Task DS-549: [React Native] Поддержка UniStyles: Базовая конфигурация#37
ragozin-nikita wants to merge 6 commits into
mainfrom
feature/DS-549

Conversation

@ragozin-nikita
Copy link
Copy Markdown
Contributor

No description provided.

@ragozin-nikita ragozin-nikita changed the title Task DS-549: [React Native] Поддержка UniStyles Task DS-549: [React Native] Поддержка UniStyles: Базовая конфигурация Apr 13, 2026
@ragozin-nikita ragozin-nikita marked this pull request as ready for review April 16, 2026 04:48
@ragozin-nikita ragozin-nikita requested a review from a team as a code owner April 16, 2026 04:48
Comment thread package.json
},
"dependencies": {
"@tabler/icons-react-native": "^3.36.0"
"@tabler/icons-react-native": "3.36.1",
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Здесь специально была не зафиксирована версия, чтобы меньше конфликтов было в случае, когда в проекте уже используется этот пакет. Считаю, что можно оставить ^3.36.1

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Вернул

Comment thread package.json
"dependencies": {
"@tabler/icons-react-native": "^3.36.0"
"@tabler/icons-react-native": "3.36.1",
"react-native-unistyles": "3.2.3"
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Я не уверен, что нужно unistyles добавлять в dependencies, скорее в peerDependencies.
В проекте на момент подключения ui kit уже может использоваться unistyles, в таком случае непонятно как это будет работать при наличии unistyles в dependencies

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Исправлено в #38

Comment thread src/utils/makeStyles.ts
import type { ThemeType } from '../theme'

/**
* @deprecated Используйте `StyleSheet.create(...)` из SDK.
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

SDK - не очень понятно, что имеется в виду

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Удален весь deprecated код

Comment thread src/hooks/useFonts.ts
*
* @deprecated Используйте `useUnistyles().theme.fonts` или `StyleSheet.create(...)`
* из SDK.
* Будет удалён в следующей minor версии.
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

А мы решили вроде мажорную версию поднимать. Если так и будет, может и удалить сразу? А то как-то нелогично получается, в мажорной версии оставляем поддержку старого апи, а в минорной - убираем

Copy link
Copy Markdown
Collaborator

@grevtsovna grevtsovna Apr 20, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

И еще момент вспомнил. Мы вроде хотели мажорную версию одинаковую поддерживать между всеми фреймворками и версия 1 должна по идее быть для либы с новыми токенами

Уточню еще у Данила что там у нас с версиями

UPD.: Уточнил - не проблема. Разные версии на вебе и мобилке - это ок

Copy link
Copy Markdown
Contributor Author

@ragozin-nikita ragozin-nikita Apr 21, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Согласен, но в #38 этот хук не deprecated

@ragozin-nikita
Copy link
Copy Markdown
Contributor Author

Правки по текущему ревью перенесены в #38

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants