react-native-thumbnail-grid
React Native Photo Grid.
Code:
Custom Image source object
The source
prop also accepts an Array of source objects like so:
Props
Property | Type | Description |
---|---|---|
source | PropTypes.array | Array containing Image uri string or source object |
width | PropTypes.number | Container width |
height | PropTypes.number | Container height |
ratio | PropTypes.float | Split screen ratio |
style | PropTypes.object | Container styles |
imageStyle | PropTypes.object | Image styles |
imageProps | PropTypes.object | Image props |
onPressImage | PropTypes.func | Callback when press image |
Image props
Property | Description |
---|---|
placeholderSource | Show placeholderSource if the source can't be loaded or error. |
loadingStyle | Style ActivityIndicator {size: 'small'; color: 'gray'} |
isShowActivity | Show ActivityIndicator loading |
placeholderStyle | Style placeholder image |