Animating width of <Animated.View> inside <Text> works on iOS but not Android #6506
Replies: 1 comment
-
Hey @ishaangandhi! I think this is not an issue with In general, Android doesn't support rendering Proposed solution If you want to render return (
<View style={{ flexDirection: 'row', flexWrap: 'wrap' }}>
<Text>{beforeBlank}</Text>
<Animated.View style={blankStyle} ref={ref} />
<Text>{afterBlank}</Text>
</View>
); But it is probably not what you want as it won't work properly with multiline text that has to be wrapped. Adding
|
Beta Was this translation helpful? Give feedback.
-
Hi there, I'm trying to animate an
Animated.View
inside a<Text>
container. This works on iOS, but not on Android.What can I do to fix this?
The idea is the component has text before a blank, a blank that changes size, and texta after the blank.
Basic version:
Beta Was this translation helpful? Give feedback.
All reactions