feat: add EaseText component#19
Open
RamboWasReal wants to merge 4 commits intomainfrom
Open
Conversation
EaseText wraps EaseView + Text to provide native transform/opacity animations on text with optional JS-side color interpolation. - `animate` for transforms/opacity (native 60fps via EaseView) - `interpolateColor` for smooth color transitions (JS rAF, opt-in) - `style.color` for instant color changes (zero JS cost) - All standard TextProps passthrough (numberOfLines, onPress, etc.) - TextAnimateProps derived from AnimateProps (minus borderRadius/backgroundColor) - useColorTransition hook with easing, delay, and spring approximation - 4 example demos: Text Color, Floating Label, Text Enter, Text Props - Updated AGENTS.md and migration skill with EaseText documentation
Resolved conflicts: - src/types.ts: combine border/shadow/color transition map keys; extend TextAnimateProps Omit with view-only properties (border, shadow, elevation). - example/src/demos/index.ts: merge all demos, add Text section. - skills/react-native-ease-refactor/SKILL.md: keep EaseText classification, include new animatable props and category keys (border, shadow, color). Adjustments: - EaseText: pass through transformPerspective for parity with EaseView. - useColorTransition: track duration/easing/delay in effect deps; drop exhaustive-deps disable; move initialColor into a ref. - TextColorDemo/TextPropsDemo: replace inline color styles with StyleSheet entries (no-inline-styles warnings). - Docs: add EaseText sections to README.md, docs/docs/usage.mdx and docs/docs/api-reference.mdx; refresh AGENTS.md TextAnimateProps Omit list.
Text `selectable` is unreliable on Android inside a ScrollView (react-native#29232) — the ScrollView cancels the long-press at the slightest movement. The example screen wraps every demo in a ScrollView, so the original `selectable` cell could never trigger a copy menu. Switch to `onLongPress` which works inside a ScrollView and still exercises the EaseText TextProps passthrough.
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.
Summary
EaseTextcomponent — wrapsEaseView+Textfor native transform/opacity animations on textinterpolateColorprop for smooth JS-side color transitions (opt-in, requestAnimationFrame)style.colorfor instant color changes (zero JS cost, default)useColorTransitionhook handles color interpolation with easing, delay, and spring approximationTextPropspass through (numberOfLines,ellipsizeMode,selectable,onPress, etc.)TextAnimatePropsderived fromAnimateProps(minusborderRadius/backgroundColor)AGENTS.mdwith EaseText architecture docsSKILL.md) with EaseText patterns and classificationAPI
Test plan
🤖 Generated with Claude Code