react-native-no-flicker-image

1.0.2 • Public • Published

react-native-no-flicker-image

React native Image component without flicker on android devices when source is changed. Show previous image until new one is loaded. Support all Image props.

Install

npm install react-native-no-flicker-image

Usage

import { NoFlickerImage } from 'react-native-no-flicker-image';

export default class DisplayAnImage extends Component {
  render() {
    return (
      <View>
        <NoFlickerImage
          source={require('/react-native/img/favicon.png')}
        />
        <NoFlickerImage
          style={{width: 50, height: 50}}
          source={{uri: 'https://facebook.github.io/react-native/docs/assets/favicon.png'}}
        />
      </View>
    );
  }
}

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.2
    250
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.2
    250
  • 1.0.1
    0
  • 1.0.0
    0

Package Sidebar

Install

npm i react-native-no-flicker-image

Weekly Downloads

209

Version

1.0.2

License

MIT

Unpacked Size

4.7 kB

Total Files

7

Last publish

Collaborators

  • stanislavmayorov