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

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

Open
minhnguyenwp opened this issue Apr 29, 2017 · 0 comments
Open

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

minhnguyenwp opened this issue Apr 29, 2017 · 0 comments

Comments

@minhnguyenwp
Copy link

minhnguyenwp commented Apr 29, 2017

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>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant