Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature] Перенести из VKUI хуки, функции и типы #341

Closed
inomdzhon opened this issue May 30, 2023 · 1 comment · Fixed by #382
Closed

[Feature] Перенести из VKUI хуки, функции и типы #341

inomdzhon opened this issue May 30, 2023 · 1 comment · Fixed by #382
Assignees

Comments

@inomdzhon
Copy link
Contributor

inomdzhon commented May 30, 2023

Описание

Сейчас хуки, некоторые типы и функции определены в библиотеке @vkontakte/vkui. Хотелось бы их вынести оттуда (см. подробнее в VKCOM/VKUI#5049).

Хуки

С некоторыми доработками необходимо вынести следующие два хука:

Типы

Вынести enum из useBridgeAdaptivity.ts#L6 в тип AdaptivityType и добавить необязательное поле adaptivity в SharedUpdateConfigData с этим типом.

Функции

Вынести функцию runTapticImpactOccurred из packages/vkui/src/lib/taptic.ts.

Что хотелось бы получить в итоге?

import { useInsets } from '@vkonktakte/vk-bridge-react';

useInsets();

@inomdzhon
Copy link
Contributor Author

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

Successfully merging a pull request may close this issue.

1 participant