Research
Security News
Kill Switch Hidden in npm Packages Typosquatting Chalk and Chokidar
Socket researchers found several malicious npm packages typosquatting Chalk and Chokidar, targeting Node.js developers with kill switches and data theft.
react-native-animated-tabs
Advanced tools
Animated Tabs for React Native. Both for iOS and Android. Just swipe between tabs to navigate
Animated Tabs for React Native. Both for iOS and Android. Just swipe between tabs to navigate.
v 1.1.0
v 1.2.1
onMoveShouldSetPanResponder={(a, e) => {
return Math.abs(e.dx) > 30 && Math.abs(e.dx) > Math.abs(e.dy) * 1.5;
}}
v 1.3 Correct support for changing orientation
npm i react-native-animated-tabs --save
Example of usage:
<AnimatedTabs>
<View style={styles.tabContent}>
<Text style={styles.text}>Tab 1 Content</Text>
</View>
<View style={styles.tabContent}>
<Text style={styles.text}>Tab 2 Content</Text>
</View>
<View style={styles.tabContent}>
<Image style={styles.image} source={require('./images/cat1.gif')} resizeMode='stretch'/>
</View>
</AnimatedTabs>
More - in example folder
Property | Type | Description | Default value |
---|---|---|---|
activePanel | number | active panel | 0 |
animatedConfig | object | spring animation properties | { tension: 70, friction: 10 } |
onAnimate | function | animate start callback, returns next active panel index | |
onAnimateFinish | function | animate finish callback, returns next active panel index | |
onMoveShouldSetPanResponder | function | should animation be started | undefined (start immediately) |
panelStyle | object | animated view styles | |
panelWidth | number | animated view width | deviceWidth / 1.4 |
swipeThreshold | number | threshold - to start or cancel swipe | deviceWidth / 7 |
sidePanelOpacity | number | opacity of not active panels | 1 |
sidePanelScale | number | scale of not active panels | 0.8 |
FAQs
Animated Tabs for React Native. Both for iOS and Android. Just swipe between tabs to navigate
The npm package react-native-animated-tabs receives a total of 34 weekly downloads. As such, react-native-animated-tabs popularity was classified as not popular.
We found that react-native-animated-tabs 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.
Research
Security News
Socket researchers found several malicious npm packages typosquatting Chalk and Chokidar, targeting Node.js developers with kill switches and data theft.
Security News
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
Product
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.