You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -153,13 +153,13 @@ render() {
153
153
|`containerWidth`| The width of the masonry list layout. Adding this will improve performance. **Version \*2.0.0 update**|`number`|
154
154
|`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 |
155
155
|`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`||
159
159
|`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`||
160
160
|`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`||
161
161
|`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 |
163
163
|`onImageResolved`| A function called after fetching image and resolving it. `(image: object, renderIndex: number) => ?object`**Version \*2.8.0 update**. |`Function`||
164
164
|`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`|[]|
0 commit comments