feat: Telegram dissolve example - #30
Merged
Merged
Conversation
blazejkustra
force-pushed
the
feat/telegram-dissolve
branch
13 times, most recently
from
September 5, 2026 15:28
4e13d73 to
e5cb731
Compare
Telegram-style "delete for everyone" in the example app: a dark-theme group chat mock (long-press context menu, reactions, confirm sheet) where the deleted bubble is snapshotted with react-native-view-shot, bound as a ShaderView texture and dissolved by a fragment shader into particles that sweep left to right, drift up-left and fade. The snapshot and canvas are prepared on long-press so the swap is seamless; the lifted message settles back before dissolving and the remaining rows slide into place with a Reanimated layout transition. Claude-Session: https://claude.ai/code/session_018M1xxfxyazPGpU5RxkXyW9
blazejkustra
force-pushed
the
feat/telegram-dissolve
branch
from
September 5, 2026 15:53
e5cb731 to
24da569
Compare
blazejkustra
added a commit
that referenced
this pull request
Sep 5, 2026
React Native types View as a function component, so useRef<View> and a View-typed parameter have no measureInWindow; use ComponentRef<typeof View>. Unblocks the repo-wide typecheck that has failed on main since #30. Claude-Session: https://claude.ai/code/session_01MYgJDumHFGETXWCh37fS7V
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
The example app had no "sample a real view into a pixel grid" effect. Telegram's delete-for-everyone dissolve is the canonical one, and it needed a convincing Telegram chat around it.
Approach
Dark Telegram group-chat mock with long-press menu and confirm sheet. The bubble's content layer is snapshotted with react-native-view-shot, bound as a ShaderView texture, and a fragment shader sweeps it into particles on a smooth invertible wind field with a bounded cell gather.
Tests
tscandeslintclean for the new files (3 pre-existing-style inline-style warnings).file://URI), real devices, WGSL validated with naga only.Screenshots