ReText text not changed but printed well in console
See original GitHub issueDescription
The SharedValue<string> from useDeriviedValue is changed well but doesn’t affect ReText well…
const percentageText = useDerivedValue(() => {
const factor = cursorX.value / graphWidth; // 0(left end in graph) ~ 1(right end in graph)
const dataIndex = Math.round(factor * (dataCount - 1)); // 0 | 1 | 2 | ... | n - 1
const text = `상위 ${datas[dataIndex].toFixed(1)}%`;
console.log(text);
return text;
});
...
<ReText text={percentageText} />

Is there any something wrong in my code?
Environment
"react": "16.13.1",
"react-native": "0.63.3",
"react-native-reanimated": "2.0.0-alpha.9.1",
"react-native-redash": "15.11.1",
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
How can I edit text that has already been printed in Console in ...
What I'm trying to do is print text in a Console application, which the user can then edit and modify, and then press...
Read more >Links - Usability & Web Accessibility - Yale University
In that case, a screen reader may only read the link text and not the surrounding text. Speech recognition software allows a user...
Read more >Text on screen - freebasic.net
Be able to position at an x,y point on that screen to print or input text, ideally by line, character position and not...
Read more >Creating Accessible Emails
Because there was no alt text added to the image, the email does not contain any content when images are not displayed. Alt...
Read more >re – Regular Expressions - Python Module of the Week
Purpose: Searching within and changing text using formal patterns. ... import re text = 'abbaaabbbbaaaaa' pattern = 'ab' for match in re.findall(pattern, ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

I believe you need to whitelist the
textnative prop for this to work…Animated.addWhitelistedNativeProps({ text: true });Source https://github.com/software-mansion/react-native-reanimated/issues/1448#issuecomment-730482678
@wcandillon Thank you fir fixes. In my last comment, the
updateXXXmethods are set state fromuseState. So the React re-render has been triggered.