
Security News
Open Source CAI Framework Handles Pen Testing Tasks up to 3,600× Faster Than Humans
CAI is a new open source AI framework that automates penetration testing tasks like scanning and exploitation up to 3,600× faster than humans.
@sendbird/react-native-scrollview-enhancer
Advanced tools
A utility package enabling onStartReached & maintainVisibleContentPosition in pre-0.72 react-native ScrollView.
A utility package that enables the use of onStartReached
and maintainVisibleContentPosition
features in ScrollView components in react-native versions prior to 0.72.
npm install @sendbird/react-native-scrollview-enhancer
React-Native version | react-native-scrollview-enhancer version |
---|---|
>=0.64 | 0.2.x |
<=0.63 | 0.1.2 |
You can use a scroll view components with onStartReached
and maintainVisibleContentPosition
applied as follows.
import { FlatList, ScrollView, SectionList } from '@sendbird/react-native-scrollview-enhancer';
const App = () => {
return (
<FlatList
inverted
data={messages}
renderItem={renderMessageItem}
onEndReached={onEndReached}
onStartReached={onStartReached}
/>
);
};
The maintainVisibleContentPosition
feature can be used by wrapping the ScrollView component (ScrollView
, FlatList
, SectionList
, VirtualizedList
) that you want to use with the ScrollViewEnhancerView
component.
import { ScrollView } from 'react-native';
import { ScrollViewEnhancerView } from '@sendbird/react-native-scrollview-enhancer';
const App = () => {
return (
<ScrollViewEnhancerView>
<ScrollView />
</ScrollViewEnhancerView>
);
};
This package provides a useBidirectional
hook that adds onStartReached
to the ScrollView
.
import { View, FlatList } from 'react-native';
import { useBiDirectional } from '@sendbird/react-native-scrollview-enhancer';
const App = () => {
const { renderScrollView } = useBiDirectional(FlatList, props, ref);
return <View>{renderScrollView()}</View>;
};
This package provides the following utility functions to make it easier to use:
maintainVisibleContentPosition
feature to the ScrollView componentmaintainVisibleContentPosition
and onStartReached
features to the ScrollView componentimport { ScrollView, FlatList } from 'react-native';
import { enhanceScrollView, enhanceScrollViewWithBidirectional } from '@sendbird/react-native-scrollview-enhancer';
const EnhancedScrollView = enhanceScrollView(ScrollView);
const BiDirectionalFlatList = enhanceScrollViewWithBidirectional(FlatList);
It is recommended to use stable features provided in versions 0.72 and above.
You can find the related work for these features in the following PR.
MIT
Made with create-react-native-library
FAQs
A utility package enabling onStartReached & maintainVisibleContentPosition in pre-0.72 react-native ScrollView.
The npm package @sendbird/react-native-scrollview-enhancer receives a total of 184 weekly downloads. As such, @sendbird/react-native-scrollview-enhancer popularity was classified as not popular.
We found that @sendbird/react-native-scrollview-enhancer demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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
CAI is a new open source AI framework that automates penetration testing tasks like scanning and exploitation up to 3,600× faster than humans.
Security News
Deno 2.4 brings back bundling, improves dependency updates and telemetry, and makes the runtime more practical for real-world JavaScript projects.
Security News
CVEForecast.org uses machine learning to project a record-breaking surge in vulnerability disclosures in 2025.