Skip to content

How to use flat-list and section-list? #2

Description

@lccambiaghi

Hi, I am a beginner with reagent as well as react-native. Sorry if my question is trivial, I would be grateful to be pointed out to resources where to learn about reagent. I am following the React Native docs and I cannot figure out how to use the components in the issue title.

This is how far I got:

(defn flat-list []
  [rrn/flat-list
   {:data [{:key "Devin"}
           {:key "Devn"}
           {:key "Den"}
           {:key "Jay"}]
    :render-item #(<> rn/Text
                      #js {:style #js {:color     "black"
                                       :textAlign "center"}}
                      (str %))}])

How can I actually display the values of the maps?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions