Skip to content

Latest commit

 

History

History
23 lines (23 loc) · 810 Bytes

HowToUse.md

File metadata and controls

23 lines (23 loc) · 810 Bytes
<Masonry
    sorted
    containerWidth={super.getWidth()}
    columns={2} // optional - Default: 2
    initialColToRender={2}
    initialNumInColsToRender={3}
    spacing={0}
    images={this.images}
    contentContainerStyle={{
        flexWrap: 'wrap',
        flexDirection: "row",
    }}
    completeCustomComponent={(props) => <CustomMasonryItem {...props} hasHeader />}
    masonryFlatListColProps={{
        onEndReachedThreshold: 0.2,
        onEndReached: this._onEndReached,
        ListHeaderComponent: this._renderHeader.bind(this),
        ListFooterComponent: this.images.length != 0 && (this.loadEnd ?this._renderNoMore: this._renderLoading)
    }}
/>

react-native-masonry-list