Skip to content

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

@lccambiaghi

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions