
Security News
Potemkin Understanding in LLMs: New Study Reveals Flaws in AI Benchmarks
New research reveals that LLMs often fake understanding, passing benchmarks but failing to apply concepts or stay internally consistent.
react-native-use-infinite-scrolling
Advanced tools
A react native package for infinite scrolling of list
A react native package developed to implement infinite scrolling in any react-native app.
Install via npm
npm i react-native-use-infinite-scrolling
Install via YARN
yarn add react-native-use-infinite-scrolling
Import the InfiniteScroll component from react-native-use-infinite-scrolling:
import InfiniteScroll from 'react-native-use-infinite-scrolling'
This component accepts 4 parameters / props:
import React, {useState} from "react";
import { View, Text } from "react-native";
import {ListItem} from 'native-base';
import axios from 'axios';
import InfiniteScroll from 'react-native-use-infinite-scrolling';
const ExampleInfiniteScroll = () => {
const [incidents, setIncidents] = useState([]);
const [total, setTotal] = useState(0);
const [loading, setLoading] = useState(false);
const [page, setPage] = useState(1);
const perPage = 10;
const url = 'https://api.punkapi.com/v2/beers'; // this is a public api
const renderItem = ({item}) => {
return (
<ListItem>
<Text style={{color: 'red'}}>{item.description}</Text>
</ListItem>
);
};
const loadIncidents = async () => {
try {
setLoading(true);
const response = await axios.get(`${url}?page=${page}&per_page=${perPage}`);
setIncidents([...incidents, ...response.data]);
setPage(page + 1);
} catch (error) {
console.log(error);
} finally {
setLoading(false)
}
}
return (
<View>
<InfiniteScroll
loading={loading}
loadingText="Loading..."
data={incidents}
renderItem={renderItem}
onLoadMore={loadIncidents} />
</View>
);
};
export default ExampleInfiniteScroll;
FAQs
A react native package for infinite scrolling of list
We found that react-native-use-infinite-scrolling demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?
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.
Security News
New research reveals that LLMs often fake understanding, passing benchmarks but failing to apply concepts or stay internally consistent.
Security News
Django has updated its security policies to reject AI-generated vulnerability reports that include fabricated or unverifiable content.
Security News
ECMAScript 2025 introduces Iterator Helpers, Set methods, JSON modules, and more in its latest spec update approved by Ecma in June 2025.