Coder Social home page Coder Social logo

Comments (4)

MasonBergstrom avatar MasonBergstrom commented on July 22, 2024 1

Commenting to ensure this doesn't get closed. We have a meeting to discuss this on Thursday.

from react-native-xaml.

chrisglein avatar chrisglein commented on July 22, 2024

To get this to work completely with you being able to define list items in JS we would need Fabric support.
Today, you can use the JS VirtualizedList and be JS from that point down. Or you can add in a XAML control and never drop into JS below that point (it's a native control all the way down). But there is no way to do this today due to the way the React layout and XAML layout interop.

In other words, to do this today you need to do contortions. There will be a better way in the future, but the future is much further out.

Creative ways on the RNXaml side: Maybe we can extend ListView with a prop that lets you customize the list items by calling into JS. Which would be similar to hosting each item with its own React root view. Definitely many caveats about any path here. It'd best be tailored to the exact needs of this list.

This should be possible with a data ItemsSource, but not with a visual (list item) Items.

from react-native-xaml.

 avatar commented on July 22, 2024

This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 4 days. It will be closed if no further activity occurs within 3 days of this comment.

from react-native-xaml.

chrisglein avatar chrisglein commented on July 22, 2024

Room for a better sample on the standard RN path for this. Opened this: microsoft/react-native-gallery#264

from react-native-xaml.

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.