
Security Fundamentals
Turtles, Clams, and Cyber Threat Actors: Shell Usage
The Socket Threat Research Team uncovers how threat actors weaponize shell techniques across npm, PyPI, and Go ecosystems to maintain persistence and exfiltrate data.
react-native-fresh-refresh666
Advanced tools
Custom pull to refresh Component
Use yarn
yarn add react-native-fresh-refresh
or npm
npm i -S react-native-fresh-refresh
You are going to need to have reanimated v2 and react-native-gesture-handler installed in your project.
import RefreshableWrapper from 'react-native-fresh-refresh';
Create Animated List or regular View to use pull to refresh
const AnimatedFlatlist = Animated.createAnimatedComponent(FlatList);
Wrap the component
<RefreshableWrapper
contentOffset={contentOffset}
Loader={() => (
<LottieView
style={styles.lottie}
autoPlay
source={require('./assets/lottie/refresh.json')}
/>
)}
isLoading={isLoading}
onRefresh={() => {
refreshHandler();
}}
>
<AnimatedFlatlist />
</RefreshableWrapper>
import { StatusBar } from 'expo-status-bar';
import React, { useState } from 'react';
import { StyleSheet, Text, View, FlatList, Dimensions } from 'react-native';
import Animated from 'react-native-reanimated';
import RefreshableWrapper from 'react-native-fresh-refresh';
import LottieView from 'lottie-react-native';
const AnimatedFlatlist = Animated.createAnimatedComponent(FlatList);
const data = ['1', '2', '3', '4', '5', '6'];
const { width } = Dimensions.get('screen');
const EmptyComponent = (props) => {
return (
<View>
<Text>LIST EMPTY COMPONENT</Text>
</View>
);
};
const ListItem = (props) => {
return (
<View style={{ height: 200 }}>
<Text>LIST Item COMPONENT</Text>
<Text> {props.item}</Text>
</View>
);
};
export default function App() {
const [isLoading, setIsLoading] = useState(false);
const [listData, setListData] = useState([]);
const refreshSimulationHandler = () => {
setListData([]);
setIsLoading(true);
setTimeout(async () => {
setListData(data);
setIsLoading(false);
}, 1500);
};
return (
<View style={styles.container}>
<StatusBar style='auto' />
<View style={styles.header}></View>
<RefreshableWrapper
contentOffset={contentOffset}
Loader={() => (
<LottieView
style={styles.lottie}
autoPlay
source={require('./assets/lottie/refresh.json')}
/>
)}
isLoading={isLoading}
onRefresh={() => {
refreshSimulationHandler();
}}
EmptyComponent={EmptyComponent}
>
<AnimatedFlatlist
data={listData}
bounces={false}
keyExtractor={(item) => item}
renderItem={({ item }) => {
return <ListItem item={item} />;
}}
style={styles.scrollList}
contentContainerStyle={styles.contenContainer}
showsVerticalScrollIndicator={false}
scrollEventThrottle={16}
ListEmptyComponent={() => <EmptyComponent />}
/>
</RefreshableWrapper>
</View>
);
}
const styles = StyleSheet.create({
container: {
flex: 1,
backgroundColor: '#fff',
alignItems: 'center',
justifyContent: 'center',
},
header: { width, height: 100, backgroundColor: 'grey' },
contenContainer: {
paddingVertical: 10,
paddingHorizontal: 16,
paddingBottom: 100,
alignItems: 'center',
},
lottie: {
width: 50,
height: 50,
},
scrollList: { width, paddingTop: 20 },
});
You can disable default styles of loader container passing prop defaultAnimationEnabled={false}
Pass Reanimated sharedValue to get overdrag Y-Offset
const contentOffset = useSharedValue(0);
<RefreshableWrapper
defaultAnimationEnabled={false}
contentOffset={contentOffset}
Loader={() => ({
<YourAwsomeComponent />
})}
isLoading={isLoading}
onRefresh={() => {
refreshHandler();
}}
>
<AnimatedFlatlist />
</RefreshableWrapper>
Contact us at hello@4twiggers.com
FAQs
Custom pull to refresh
The npm package react-native-fresh-refresh666 receives a total of 0 weekly downloads. As such, react-native-fresh-refresh666 popularity was classified as not popular.
We found that react-native-fresh-refresh666 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 Fundamentals
The Socket Threat Research Team uncovers how threat actors weaponize shell techniques across npm, PyPI, and Go ecosystems to maintain persistence and exfiltrate data.
Security News
At VulnCon 2025, NIST scrapped its NVD consortium plans, admitted it can't keep up with CVEs, and outlined automation efforts amid a mounting backlog.
Product
We redesigned our GitHub PR comments to deliver clear, actionable security insights without adding noise to your workflow.