Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    Naman Goel
    @nmn
    React-Infinity 2.0 is in development. It's going to be a pretty big release. Stay tuned.
    Pierre Gouthéraud
    @pierregoutheraud
    Is there a way to use this library with various height elements ?
    Nils
    @roundrobin
    hey guys
    hah I am also looking for a library with variable heights
    @pierregoutheraud any luck?
    Nils
    @roundrobin
    Can you guys talk a little bit what libs inspired you when coding this react-infinity?
    Naman Goel
    @nmn
    @roundrobin This is all my fault. Been super busy and haven't finished 2.0
    I'll try and push myself and get it done already
    variable height will be a feature for sure. I've done it before with famo.us, but it's going to be better with React.
    Nils
    @roundrobin
    @nmn Great to hear. I've looked in the current non-react infinite scroll libraries and it seems this is a bit trickey
    almost none of the bigger libraries (iscroll, infinite.js) don't support it out of the box
    I actually came across this lib, maybe this helps you https://github.com/seatgeek/react-infinite
    They have a semi flexible approach, you can define different cell types upfront
    that might work for a lot of cases
    Naman Goel
    @nmn
    I actually have most of the problems solved. I'm just trying to find time to actually work on it
    react-infinite looks good though
    Nils
    @roundrobin
    cool, I will give it a shot if its ready
    Arnold Sakhnov
    @egukin
    This may be a super dumb question, but I'm struggling to figure out how to actually compile the library to run in the browser? I'm building my simple React app with Gulp. Do I need to browserify React-Infinity or is there some other recommended flow to this?
    Simon Bächler
    @sbaechler
    Hi, I'm having trouble getting the app to work in horizontal mode. I would like to show a horizontal infinite slider within a larger page. Therefore the slider should only be as high as the elements. But the div is actually thousands of pixels high. I have set direction to 'horizontal'.
    Naman Goel
    @nmn
    @egukin React-Infinity is written in ES5 and doesn't need any transpilation. It is, however, commonJS only, so you will need Browserify or Webpack to require it in your own project.
    If you want to drop it as a script tag, look at Browserify --standalone to compile it.
    @sbaechler That sounds like a bug. I'm not using the Horizontal mode in any app, so it's not very well tested. If you could create an issue on Github, I'll be sure to take a look.
    Also, if you would be kind enough to donate an example project for horizontal mode testing via a PR, that would be amazing!
    Simon Bächler
    @sbaechler
    Fixing it would need some design considerations first. I can think of two ways one would use a horizontal slider. Either the slider has the height of one element or the height of the device. For the first case, the element would define the height of the slider while for the second case the slider would define the height of the element.
    I ended up removing the horizontal slider completely from my project.
    Naman Goel
    @nmn
    @sbaechler The current implementation is supposed to support the first use-case. You can define the max-rows for horizontal layouts
    But the 2.0 which I've been working on, like, forever, lets you define the size for the container
    and the max-rows/columns
    So, in the last few months, the design considerations are all I've actually finished any work on :(
    Deguerville Léandre
    @Asto6642_twitter
    Hello, i am trying to use react-infinity but i got some errors is there anyone to help ?