0.1.0 • Published 11 months ago

@chainplatform/progressive-image v0.1.0

Weekly downloads
-
License
MIT
Repository
github
Last release
11 months ago

@chainplatform/progressive-image

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

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>
    );
  }
}