Environment:
OS: macOS High Sierra 10.13.4
Node: 7.10.0
Yarn: 1.3.2
npm: 5.5.1
Watchman: 4.7.0
Xcode: Xcode 9.3 Build version 9E145
Android Studio: Not Found
Packages: (wanted => installed)
react: ^16.3.1 => 16.3.1
react-native: ^0.55.3 => 0.55.3
Can you provide a Snack or a minimal code sample that demonstrates the issue?
Here you go. Snack link: demo image width shrinking with PanResponder and Animated
1- Swipe the list item on the left of the screen until the picture is not visible.
2- Click on the list item to send it to its initial position
3- Repeat 1 and 2 couple of times and you will see the image width shrinking.
Issue happens with iOS only. Everything is fine on Android.
Also, the issue is not linked to ListItem or FlatList or anything like that. In the example I have made, it is a simple Animated.View. No iteration.
react-native 0.55.4 has same issue.
Is there a label for "This is a basic behavior with very ugly consequences - we must fix it ASAP as it makes react native looks like an amateur env" that we can label this bug?馃槉
I have the same problem! This is related to #20215 as well and is really frustrating. the translateY/X workaround is working but it doesn't change drag the parent layout with it so its not for every scenario. This doesn't fix it.
For me it happend after I upgraded to 0.55.0
That solution worked well for me https://github.com/facebook/react-native/issues/20215
I can confirm that this is fixed now.
My project deps:
react: 16.5.0
react-native: 0.57.1
Hey there, it looks like there has been no activity on this issue recently. Has the issue been fixed, or does it still require the community's attention? This issue may be closed if no further activity occurs. You may also label this issue as "For Discussion" or "Good first issue" and I will leave it open. Thank you for your contributions.
Hey there, it looks like there has been no activity on this issue recently. Has the issue been fixed, or does it still require the community's attention? This issue may be closed if no further activity occurs. You may also label this issue as a "Discussion" or add it to the "Backlog" and I will leave it open. Thank you for your contributions.
Closing this issue after a prolonged period of inactivity. If this issue is still present in the latest release, please feel free to create a new issue with up-to-date information.
Most helpful comment
Is there a label for "This is a basic behavior with very ugly consequences - we must fix it ASAP as it makes react native looks like an amateur env" that we can label this bug?馃槉