apeman-react-photo
v3.0.2
Published
apeman react package for photo components.
Downloads
153
Maintainers
Readme
apeman-react-photo
apeman react package for photo components.
Installation
$ npm install apeman-react-photo --saveDemo
Live demo is hosted on GitHub Pages.
Usage
'use strict'
import React from 'react'
import {
ApPhoto,
ApPhotoStyle,
ApPaperPhoto,
ApPaperPhotoStyle
} from 'apeman-react-photo'
const ExampleComponent = React.createClass({
render () {
return (
<div>
<ApPhotoStyle />
<ApPaperPhotoStyle />
<ApPaperPhoto imgSrc="http://example.com"/>
</div>
)
}
})
Components
ApPaperPhotoStyle
Props
| Name | Type | Default | Description | | ---- | ---- | ------- | ----------- | | style | object | {} | | |
ApPaperPhoto
Props
| Name | Type | Default | Description | | ---- | ---- | ------- | ----------- | | imgSrc | string | null | | Image source URL | | imgWidth | number | 256 | | Image width | | imgHeight | number | 192 | | Image height | | imgScale | string | 'fill' | | Image scale policy | | onTap | func | null | | Handler for tap event |
ApPhotoStyle
Props
| Name | Type | Default | Description | | ---- | ---- | ------- | ----------- | | style | object | {} | | |
ApPhoto
Props
| Name | Type | Default | Description | | ---- | ---- | ------- | ----------- | | imgSrc | string | null | | Image source URL | | imgWidth | number | 256 | | Image width | | imgHeight | number | 128 | | Image height | | imgScale | string | 'fit' | | Image scale policy | | onTap | func | null | | Handler for tap event |
License
This software is released under the MIT License.

