react-native-lazyload icon indicating copy to clipboard operation
react-native-lazyload copied to clipboard

Question: Can i use LazyLoadImage in child comp?

Open minhnguyenwp opened this issue 8 years ago • 0 comments

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>

minhnguyenwp avatar Apr 29 '17 08:04 minhnguyenwp