Skip to content

Image width shrinking when applying PanResponder to swipe in and out of the screen #19244

@sbkl

Description

@sbkl

Environment

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

Steps to Reproduce

  • Create a flat list
  • Apply PanResponder on each list item with an image enabling to swipe the list item in and out of the screen.
  • When the list item is swipe back to its initial position and the image is visible again, the image width is smaller.
  • Issue on current library: react-native-swipeout. #264 illustrating the bug with screenshot,
  • I created my own PanResponder to see if it was linked to the library but I got the exact same issue,
  • Just downgraded to react-native 0.54.4 and it works properly.

Expected Behavior

  • Image should keep the same width.

Actual Behaviour

  • Image width is shrinking.

Metadata

Metadata

Assignees

No one assigned

    Labels

    API: PanResponderBugStaleThere has been a lack of activity on this issue and it may be closed soon.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions