Code Monkey home page Code Monkey logo

examples-problems-rlv_reanimated_drag_handles's Introduction

Intro

This is a ios demo app to illustrate a problem/bug that occurs when the reanimated library is used in conjunction with the recyclelistview (RLV) component to implement drag re-orderable lists.

All seems to be working correctly up until a row is deleted, whereupon the remaining rows stop being draggable. The only way I've found to stop this is change the key attribute to RLV, whereupon the forced RLV re-render causes reanimated's Animated code to be mounted again.

fwiw: In order to get something that worked, I ended up switching out reanimated and had to refactor the Animated.View to always be present. The working version is over on the branch std_animation_library

Installation and running

ios

Usual assumptions about working node, yarn, xcode, simulators etc being installed. Then

  1. cd checkout_location
  2. yarn install
  3. react-native link react-native-gesture-handler - shouldn't need it but it does.
  4. cd ios && pod install && cd ..
  5. yarn ios

Using the app to play around with the problem should be straight forward, with more details embedded in it and the code base.

Android

Android's not a platform that's targeted at the moment, it should probably work but it's untested.

Notes

examples-problems-rlv_reanimated_drag_handles's People

Contributors

shufflingb avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.