apeman-react-photo

3.0.2 • Public • Published

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

Name Type Default Description
style object {}

ApPaperPhoto

Props

Name Type Default Description
imgSrc string null
imgWidth number 256
imgHeight number 192
imgScale string 'fill'
onTap func null

ApPhotoStyle

Props

Name Type Default Description
style object {}

ApPhoto

Props

Name Type Default Description
imgSrc string null
imgWidth number 256
imgHeight number 128
imgScale string 'fit'
onTap func null

License

This software is released under the MIT License.

Links

/apeman-react-photo/

    Package Sidebar

    Install

    npm i apeman-react-photo

    Weekly Downloads

    17

    Version

    3.0.2

    License

    MIT

    Last publish

    Collaborators

    • okunishinishi