@chainplatform/progressive-image

0.1.0 • Public • Published

@chainplatform/progressive-image

React Native Progressive Image for React Native and React Native Web.

Current npm package version. PRs welcome! Follow @doansan

Install

npm install @chainplatform/progressive-image --save

or

yarn add @chainplatform/progressive-image

Example

import React from 'react';
import {StyleSheet} from 'react-native';
import ProgressiveImage, {Loading, ViewLoader} from '@chainplatform/progressive-image';

class App extends React.Component {

  render() {
    return (
      <View style={{flex:1}}>
          <ViewLoader
            style={{
              showLoading: false,
              imageType: "link",
              source: "image link",
              resizeMode: 'center',
              style: {
                width: 96,
                height: 40,
                color: '#4189FF'
              }
            }}/>
      </View>
    );
  }
}

Package Sidebar

Install

npm i @chainplatform/progressive-image

Weekly Downloads

3

Version

0.1.0

License

MIT

Unpacked Size

9.35 kB

Total Files

8

Last publish

Collaborators

  • chainplatform