3.0.2 • Published 9 years ago

apeman-react-photo v3.0.2

Weekly downloads
4
License
MIT
Repository
github
Last release
9 years ago

apeman-react-photo

Build Status Code Climate Code Coverage npm Version JS Standard

apeman react package for photo components.

Installation

$ npm install apeman-react-photo --save

Demo

Live demo is hosted on GitHub Pages.

Demo Image

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

NameTypeDefaultDescription
styleobject{}

ApPaperPhoto

Props

NameTypeDefaultDescription
imgSrcstringnullImage source URL
imgWidthnumber256Image width
imgHeightnumber192Image height
imgScalestring'fill'Image scale policy
onTapfuncnullHandler for tap event

ApPhotoStyle

Props

NameTypeDefaultDescription
styleobject{}

ApPhoto

Props

NameTypeDefaultDescription
imgSrcstringnullImage source URL
imgWidthnumber256Image width
imgHeightnumber128Image height
imgScalestring'fit'Image scale policy
onTapfuncnullHandler for tap event

License

This software is released under the MIT License.

Links

3.0.2

9 years ago

3.0.1

9 years ago

3.0.0

9 years ago

2.0.5

9 years ago

2.0.4

9 years ago

2.0.3

9 years ago

2.0.2

9 years ago

2.0.1

9 years ago

2.0.0

9 years ago

1.1.4

9 years ago

1.1.3

9 years ago

1.1.2

9 years ago

1.1.1

9 years ago

1.1.0

10 years ago

1.0.1

10 years ago

1.0.0

10 years ago