What new in react-telegram-web-app@2.0 ? 🚀🚀🚀 #32
vkruglikov
announced in
Announcements
Replies: 2 comments
-
Awesome work, man! Thank you 🔥🔥🔥 |
Beta Was this translation helpful? Give feedback.
0 replies
-
Amazing work 🎉 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
What's new in @vkruglikov/react-telegram-web-app@2.0? 😃🚀
Hey everyone!
Recently have released a package with breaking changes.
WebAppProvider see in docs 🌐📦
The main idea of updating added the
WebAppProvider
component. This added context and enables us better control components and hooks, and the connection between them.Now WebAppProvider is unnecessary, but it is the better way to use.
It accepts optional property
options
smoothButtonsTransition
- When it istrue
, we try to smooth the transition between showing and hiding buttons.This happens when using the button on multiple pages 😊
So we save you the extra 'hide' call
Added tests 🧪
I covered all components and hooks with tests, so it's much safer now
Fixed incorrect WebApp interfaces
Some hooks like
useExpand
return incorrect types. It's been fixedSummary
These small changes are a big step in the development of the package. 😊
The full list of changes can be viewed here
https://github.com/vkruglikov/react-telegram-web-app/releases/tag/v2.0.0
Enjoy the new update! 🥳🎉
Beta Was this translation helpful? Give feedback.
All reactions