New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

react-native-loadimage

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-native-loadimage

是一款图片预加载插件,带有原生loading加载器,通常在列表显示时,没有一个loading,总是不是很好的感觉,所以封装了一个,自己的项目也在用

latest
npmnpm
Version
0.0.11
Version published
Weekly downloads
27
-10%
Maintainers
1
Weekly downloads
 
Created
Source

#install npm install --save react-native-loadimage

#code

import Loadimage from 'react-native-loadimage';
export default class extends Component {
render(){
return(
                <View style={styles.list}>
                    <Loadimage style={styles.pic} url='pic.png'/>
                    <Text style={styles.title}>test</Text>
                </View>
            )
 }

}
            const styles = StyleSheet.create({
                list: {
                    backgroundColor: '#fff', marginBottom: 10
                },
                title: {color: '#666', padding: 10},
                pic: {
                    height: 180
                }
            });

#version v0.0.8 update v0.0.10 update Animated

Keywords

reactnative

FAQs

Package last updated on 19 Jun 2017

Did you know?

Socket

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