
Product
Introducing GitHub Actions Scanning Support
Detect malware, unsafe data flows, and license issues in GitHub Actions with Socket’s new workflow scanning support.
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 47 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.

Product
Detect malware, unsafe data flows, and license issues in GitHub Actions with Socket’s new workflow scanning support.

Product
Add real-time Socket webhook events to your workflows to automatically receive pull request scan results and security alerts in real time.

Research
The Socket Threat Research Team uncovered malicious NuGet packages typosquatting the popular Nethereum project to steal wallet keys.