Skip to content

thanhcuong1990/react-native-SDWebImage

Repository files navigation

React Native SDWebImage is released under the MIT license. Current npm package version. Current npm package download in last month. PRs welcome!

Getting started

$ npm install react-native-sdwebimage --save

Mostly automatic installation

$ react-native link react-native-sdwebimage
$ cd ios && pod install

Usage

import RNSDWebImage from 'react-native-sdwebimage';

<RNSDWebImage
  style={{ width: 100, height: 100 }}
  source={{
    uri: 'https://i.imgur.com/Hep1hx2.jpg',
    priority: RNSDWebImage.priority.high
  }}
  resizeMode="cover"
/>

License

React Native SDWebImage is MIT licensed, as found in the LICENSE file.