Skip to content
This repository was archived by the owner on Nov 11, 2019. It is now read-only.
This repository was archived by the owner on Nov 11, 2019. It is now read-only.

Question: Can i use LazyLoadImage in child comp?  #25

@minhnguyenwp

Description

@minhnguyenwp

I will use lazyloadImage inside
ProductCardItem component calls host : "lazyload-list".
is it possible? will it work?

return(
      <LazyloadScrollView
        name="lazyload-list"
        >
          <View style={{flexDirection: 'row', flexWrap: 'wrap', paddingBottom: 10}}>
            {
              arrProdList.map((item, i) => {
                return (
                  <View key={i+1}
                    host="lazyload-list"
                    style={{width: (widthCard / 2) - 15,
                      height: 240,
                      marginLeft: 10,
                      marginTop: 5}}>
                    {<ProductCardItem  prod={item} lazyload={false}/>}
                  </View>
                );
              })
            }
        </View>
      </LazyloadScrollView>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions