Skip to content

Commit 3f7fb35

Browse files
authored
docs: expand section on animating text in performance guide (#9119)
## Summary This PR mentions #8595 in the docs as well as adds info about SwiftUI numeric transitions. ## Test plan
1 parent 1cc3e42 commit 3f7fb35

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/docs-reanimated/docs/guides/performance.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,6 @@ const pan = useMemo(
127127

128128
When implementing an animated number counter, don't use React state to periodically update the counter. Instead, store the number in a shared value and use an animated `TextInput` component to display the current value. For more details, see [this example](https://github.com/software-mansion/react-native-reanimated/blob/main/apps/common-app/src/apps/reanimated/examples/CounterExample.tsx).
129129

130-
```
130+
We are also working on adding support for animating text inside `Animated.Text` component using a shared value – see [PR #8595](https://github.com/software-mansion/react-native-reanimated/pull/8595).
131131

132-
```
132+
You can also consider implementing your own native component with rolling ticket using `contentTransition(.numericText())` modifier in SwiftUI (requires iOS 16+).

0 commit comments

Comments
 (0)