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

react-native-network-loadfailed

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-native-network-loadfailed

加载失败

latest
Source
npmnpm
Version
1.0.0
Version published
Weekly downloads
4
Maintainers
1
Weekly downloads
 
Created
Source

react-native-network-loadfailed

加载失败

Getting started

安装 react-native-network-loadfailed

npm install react-native-network-loadfailed --save

使用

// ...

import LoadFailed from 'react-native-network-loadfailed';

export default class LoadFailedExample extends Component{
	render(){
		return (
			<LoadFailed
				onPressButton={()=>{alert('callback')}}
			/>
		)
	}
}

API

  • onPressButton - (Function) - 点击按钮回调
  • text - (Number) - 提示文本,默认 "网络不给力,请再试试吧。"
  • buttonText - (Number) - 按钮文本,默认 "重试"
  • source - (Object, Image) - 默认 "游游哭"
  • style - (Object, Array) - 外层样式

FAQs

Package last updated on 22 Jun 2016

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