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

react-native-listview

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-native-listview

listview是react native中上拉翻页插件

latest
Source
npmnpm
Version
0.0.16
Version published
Maintainers
1
Created
Source

install

npm install --save react-native-listview

App

目前ios版"啊呀share"所使用当前插件

###example

import React,{Component} from 'react';
import {View,Text,StyleSheet,Image,TouchableOpacity} from 'react-native';
import Listv from 'react-native-listview';

export default class extends Component {
    render(){
     const {navigator}=this.props;
        return(
            <Listv pagesize={5}
                            kind={0}
                           component={NewsContent}
                           navigator={navigator}
                           url='http://o9ji2nqbn.bkt.clouddn.com/news.json'/>
        );
    }
}

API

###kind {0}默认,{1},{2},目前三种布局 ###pagesize 每页条数

navigator{...props}

组件导航继承,没有这个无法进入子页面操作,会报bug

url

数据源地址,可以异步,里面封装fetch

onEndReachedThreshold

离底部距离,默认0

#version

  • v0.0.15 update

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