Skip to content

Commit af2473c

Browse files
committed
Updated readme file.
1 parent 2305892 commit af2473c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -153,13 +153,13 @@ render() {
153153
| `containerWidth` | The width of the masonry list layout. Adding this will improve performance. **Version \*2.0.0 update** | `number` |
154154
| `customImageComponent` | Use a custom component to be rendered for the image as long as the component follows the standard interface of the `react-native` `Image` component. | `React.Component` | `Image` module import of react-native |
155155
| `customImageProps` | An object to pass additional properties to the `customImageComponent` | `object` | |
156-
| `completeCustomComponent` | This function is called as an alternative to render each image. This function must return a React Element or Component, and it is required to have the source and style for the component to display proper masonry. `({ source: object, style: { width: number, height: number, margin: number }, data: object }) => React.Element` | `Function` | |
157-
| `renderIndividualHeader` | Custom function that is executed **ABOVE** each individual masonry image. `(item: { column: number, index: number, dimensions: { width: number, height: number }, masonryDimensions: { width: number, height: number, margin: number, gutter: number }, source: object, ...data }) => ?React.Element` | `Function` | |
158-
| `renderIndividualFooter` | Custom function that is executed **BELOW** each individual masonry image. `(item: { column: number, index: number, dimensions: { width: number, height: number }, masonryDimensions: { width: number, height: number, margin: number, gutter: number }, source: object, ...data }) => ?React.Element` | `Function` | |
156+
| `completeCustomComponent` | This Function or React Component is called as an alternative to render each image. Must return a React Element or Component, and it is required to have the source and style for the component to display proper masonry. `({ source: object, style: { width: number, height: number, margin: number }, data: object }) => React.Element` | `Function` or `React.Component` | |
157+
| `renderIndividualHeader` | A component, React Element, or Function that is executed **ABOVE** each individual masonry image. `(item: { column: number, index: number, dimensions: { width: number, height: number }, masonryDimensions: { width: number, height: number, margin: number, gutter: number }, source: object, ...data }) => ?React.Element` | `Function`, `React.Component`, or `React.Element` | |
158+
| `renderIndividualFooter` | A component, React Element, or Function that is executed **BELOW** each individual masonry image. `(item: { column: number, index: number, dimensions: { width: number, height: number }, masonryDimensions: { width: number, height: number, margin: number, gutter: number }, source: object, ...data }) => ?React.Element` | `Function`, `React.Component`, or `React.Element` | |
159159
| `onPressImage` | Custom function that is executed after a single tap on the image. `(item: object, index: number) => void` **index params included in Version \*2.2.0 update** | `Function` | |
160160
| `onLongPressImage` | Custom function that is executed after a long press on the image. `(item: object, index: number) => void` **index params included in Version \*2.2.0 update** | `Function` | |
161161
| `masonryFlatListColProps` | Props to be passed to the underlying `FlatList` masonry. See [`FlatList` props...](https://facebook.github.io/react-native/docs/flatlist#props) | `object` | {} |
162-
| `emptyView` | A component, React Element, or function that is executed when there is no images. | `React.Component`, `React.Element` or `Function` | undefined |
162+
| `emptyView` | A component, React Element, or Function that is executed when there is no images. | `React.Component`, `React.Element` or `Function` | undefined |
163163
| `onImageResolved` | A function called after fetching image and resolving it. `(image: object, renderIndex: number) => ?object` **Version \*2.8.0 update**. | `Function` | |
164164
| `itemSource` | Image object entry to the image `source` and `dimensions` or `height` and `width`. Max is 7 entries/properties to image source. **Version \*2.1.0 update**. Learn more about this at the [helpful hints section](#helpful-hints) | `Array` | [] |
165165

0 commit comments

Comments
 (0)