Giter Site home page Giter Site logo

Comments (20)

nickcharles avatar nickcharles commented on May 26, 2024 5

For those who are looking for a quick drop in I've thrown together an implementation of this using the new FlatList component, you can find the code here: https://github.com/nickcharles/react-native-invertible-flat-list

from react-native-invertible-scroll-view.

guysegal avatar guysegal commented on May 26, 2024 5

FlatList now has an inverted prop

from react-native-invertible-scroll-view.

itinance avatar itinance commented on May 26, 2024 2

The issue with ListView is that it is already deprecated since 0.43 and also that no pullrequests got merged anymore, even those from Januar 2017, with the argumentation that it is deprecated.

from react-native-invertible-scroll-view.

jcharbo avatar jcharbo commented on May 26, 2024 1

It appears that the children are being passed differently to the create element function for the scrollview in virtualizedlist. You can modify that code to make it work or for now you can make a quick fix in your renderitem function. Just wrap the child in a view with the style {
transform: [
{ scaleY: -1 },
],
}

from react-native-invertible-scroll-view.

nickcharles avatar nickcharles commented on May 26, 2024 1

@braco don't think so, I'm going to continue using what I wrote. I'll update it for 0.45 next week.

from react-native-invertible-scroll-view.

psaia avatar psaia commented on May 26, 2024 1

Really nice work with react-native-invertible-flat-list, @nickcharles. Works great.

from react-native-invertible-scroll-view.

lorenzsell avatar lorenzsell commented on May 26, 2024 1

There's also this StackOverflow answer which worked really well for me: https://stackoverflow.com/questions/43399343/inverting-a-flatlist#_=_

from react-native-invertible-scroll-view.

ide avatar ide commented on May 26, 2024

We haven't tried it at all. My guess is that it won't work, I'm not sure if FlatList supports composing scroll views yet. If it does, it wouldn't be too hard to get this component working with FlatList.

from react-native-invertible-scroll-view.

Talor-A avatar Talor-A commented on May 26, 2024

@ide since react native will be transitioning to FlatList in the next few months are there plans in the future to expand this library to FlatList as well?

from react-native-invertible-scroll-view.

jpshelley avatar jpshelley commented on May 26, 2024

I tried it and is somewhat works. I'm testing against Android however and issue #33 is stopping me from testing it fully. Is there any thought as to what is causing 33 to help get it up to speed for the flatlist?

from react-native-invertible-scroll-view.

ide avatar ide commented on May 26, 2024

No current plans to support FlatList -- it's not something I'm against but also don't have as much of a need compared to other projects.

from react-native-invertible-scroll-view.

itinance avatar itinance commented on May 26, 2024

I've tried it out with the new FlatList-Component and it isn't working well.

  1. The rows are drawn upside down (even the text)
  2. the Event "onViewableItemsChanged" usually returns exactly those rows, that are currently visible while scrolling. When using InvertableScrollView the FlatList returns ALL rows in this event with the first rendering, regardless whether they are visible or not

Any ideas?

from react-native-invertible-scroll-view.

guysegal avatar guysegal commented on May 26, 2024

@jpshelley how did you make it work?

from react-native-invertible-scroll-view.

braco avatar braco commented on May 26, 2024

There are improvements to FlatList in the latest release, does this unblock anything?

https://github.com/facebook/react-native/releases/tag/v0.45.0

from react-native-invertible-scroll-view.

nickcharles avatar nickcharles commented on May 26, 2024

@lorenzsell that's exactly what my package does =)

from react-native-invertible-scroll-view.

JohnDotOwl avatar JohnDotOwl commented on May 26, 2024

?????

from react-native-invertible-scroll-view.

mattisfrommars avatar mattisfrommars commented on May 26, 2024

Given the inverted prop on FlatList, should that be the preferred method of creating inverted scroll lists now?

from react-native-invertible-scroll-view.

ide avatar ide commented on May 26, 2024

Yeah, I would use the built-in prop if that works well.

from react-native-invertible-scroll-view.

nickcharles avatar nickcharles commented on May 26, 2024

I would also encourage using that instead of custom libraries.

from react-native-invertible-scroll-view.

lgh06 avatar lgh06 commented on May 26, 2024

Also faced upside down issue.

Update: used FlatList's inverted prop, removed this lib, and modified scrollToXxx methods. works fine now.

from react-native-invertible-scroll-view.

Related Issues (20)

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.