Socket
Socket
Sign inDemoInstall

react-livephotos

Package Overview
Dependencies
21
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    react-livephotos

A react wrapper for apple live photos api.


Version published
Weekly downloads
1
Maintainers
1
Install size
3.29 MB
Created
Weekly downloads
 

Readme

Source

react-livephotos

Wraps Apple's "Live Photos" in a react app.

Usage

Usage is simple.

import LivePhotos from 'react-livephotos'

export default ({...props}) => (
  <div>
    <h1>Some cool component!</h1>
    <LivePhotos
      className='whatever-you-want'
      width='300'
      height='200'
      photoSrc='url-to-photo.jpg'
      videoSrc='url-to-video.mov'
    />
  </div>
)

Properties

We support all the properties provided by LivePhotosKit.Player.

The following are specific to this module:

  • className (String) - The class name to apply to the containing element.
  • width (Int) - The width of the container. Defaults to the size of the live photo.
  • height (Int) - The height of the container. Defaults to the size of the live photo.

License

MIT

Keywords

FAQs

Last updated on 28 Apr 2017

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc