<ReText /> Not updating UI for Web
See original GitHub issueHey, I spent a bit of time earlier today trying to get ReText to work on web and can’t seem to figure out if I’m just using incorrectly or there’s a bit more to it. I couldn’t find anything explicit in the docs saying that this is available for web, although seeing that react-native-reanimated 2.0.0 should support web, I thought it might…
expo: 41.0.1 react: 16.13.1 react-native: 0.63 react-native-redash: 16.0.11 react-native-reanimated: 2.1.0 react-native-web: 0.13.12
Heres a bit of boilerplate to re-create:
import React from 'react';
import { Button, View } from 'react-native';
import { useDerivedValue, useSharedValue } from 'react-native-reanimated';
import { ReText } from 'react-native-redash';
const Test = () => {
let foo = useSharedValue(0);
const count = useDerivedValue(() => { return foo.value.toString() });
const incrementCounter = () => {
foo.value++;
console.log(foo.value);
}
return (
<View>
<ReText text={count} />
<Button title={"Counter"} onPress={incrementCounter}/>
</View>
);
}
export default Test;
Behaviour on Android: works as expected, counter increments on press.
Behaviour on Web: Count doesn’t update on the ui, although the state is still mutated and logged to the console.
Issue Analytics
- State:
- Created 2 years ago
- Reactions:1
- Comments:6 (1 by maintainers)
Top Results From Across the Web
<ReText /> Not updating UI for Web - Bountysource
Hey, I spent a bit of time earlier today trying to get ReText to work on web and can't seem to figure out...
Read more >React-native-reanimated 2: How do I update Text in response ...
1. Create a SharedValue const animatedText = useSharedValue('Some Text'). 2. Change the SharedValue when gesture events finish and x > 100
Read more >ReText Change Color Scheme and Customization - GeekThis
Making changes is as simple as opening any of the two files we modified previously and changing the color values. If the colors...
Read more >P: Text changes do not update - Windows - Adobe Support Community
First quit Photoshop. Then install the attached file ( PSUserConfig.txt ) in your Photoshop Settings folder: Windows : [Installation Drive]:\Users\[User ...
Read more >Unable to launch ReText installed with pip3 - how to fix?
I have installed ReText with the same method on other Ubuntu 16.04.5 laptop today. ... so ReText installed and working here without issues....
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
A web-compatible
ReText
component can be found here: https://github.com/coinjar/react-native-wagmi-charts/blob/master/src/components/AnimatedText.tsxIn case you need a hack, the snack I linked to above does solve it, using
setNativeProps
.