Code Monkey home page Code Monkey logo

Comments (16)

hovox avatar hovox commented on May 24, 2024 4

+1 for this issue. Is there a status update for this? Could you provide steps on how to implement custom layout manager ?

from recyclerlistview.

naqvitalha avatar naqvitalha commented on May 24, 2024 1

Staggered in one dimension for now. Just return relevant dimensions in layout provider and it'll work. Did you try this?

from recyclerlistview.

naqvitalha avatar naqvitalha commented on May 24, 2024 1

Masonry cannot be done with current layout manager. You can however write your own. We will be opening it up soon anyway. Would you like to?

from recyclerlistview.

ckdvivedi avatar ckdvivedi commented on May 24, 2024

Please provide solution, How can I achieve staggered RecyclerListView .

from recyclerlistview.

ckdvivedi avatar ckdvivedi commented on May 24, 2024

I Tried but I want staggered grid as masonry layout. ex. Pinterest. With the changes in layout provider I am not able achieve this.

Please prefer this image https://cdn-images-1.medium.com/max/2000/1*ksTMskNDTgzgt07XpmYh2w.png

from recyclerlistview.

ckdvivedi avatar ckdvivedi commented on May 24, 2024

Sure. Thanks for your reply. I have to move another library project. BTW great library. Please provide support for masonry layout soon.

from recyclerlistview.

naqvitalha avatar naqvitalha commented on May 24, 2024

Great.. We'll try to do that soon.

from recyclerlistview.

naqvitalha avatar naqvitalha commented on May 24, 2024

Check this file https://github.com/Flipkart/recyclerlistview/blob/master/src/core/layoutmanager/LayoutManager.ts
All the public methods here except getOffsetForIndex need to be implemented by you. If any of you can take it up I can go ahead and start opening up layout managers externally and provide documentation. Masonry will be a good start.

from recyclerlistview.

hovox avatar hovox commented on May 24, 2024

Hey @naqvitalha I have created a pull request , please check and let me know, although I hove not tested it, would be good to have unit tests.

from recyclerlistview.

ashokkumar88 avatar ashokkumar88 commented on May 24, 2024

@ckdvivedi can u please inform which library you used for masonry?

from recyclerlistview.

dwidc avatar dwidc commented on May 24, 2024

Hi, is this already solved?
I've checked #175 hasn't been merged.

Otherwise I'm planning to add masonry layout for RecyclerListView.

from recyclerlistview.

raulclaudino avatar raulclaudino commented on May 24, 2024

Hi, is this already solved?
I've checked #175 hasn't been merged.

Otherwise I'm planning to add masonry layout for RecyclerListView.

Could you share with us?

from recyclerlistview.

dwidc avatar dwidc commented on May 24, 2024

@raulclaudino It's already in pull request, #526

from recyclerlistview.

raulclaudino avatar raulclaudino commented on May 24, 2024

@raulclaudino It's already in pull request, #526

I tried to implement, but I couldn't. The console says that the /dist folder does not exist. Need to compile this folder? Can you give me any instructions on how to run?

Thank you!

from recyclerlistview.

dwidc avatar dwidc commented on May 24, 2024

@raulclaudino It's all on package.json "scripts": section.
Just run `npm run clean', and then followed by 'npm run build'.
It will build '/dist' folder.

It calls bash script so make sure you're on mac or linux or windows 10 wsl.

If you're on older windows just examine '/scripts/build.sh' and run its windows counterpart.
For example :

npx tslint 'src/**/*.{ts,tsx}'
cd src
npx file-directives REACT-NATIVE,RELEASE
cd..
npx tsc --outDir dist/reactnative

and so on.

from recyclerlistview.

usrbowe avatar usrbowe commented on May 24, 2024

Would it be easy to apply LayoutManager code from MasonryList in FlashList? @naqvitalha

from recyclerlistview.

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.