Gathering detailed insights and metrics for react-native-scrollable-tabs-hybrid
Gathering detailed insights and metrics for react-native-scrollable-tabs-hybrid
Gathering detailed insights and metrics for react-native-scrollable-tabs-hybrid
Gathering detailed insights and metrics for react-native-scrollable-tabs-hybrid
Tabbed navigation that you can swipe between, each tab can have its own ScrollView and maintain its own scroll position between swipes. Pleasantly animated. Customizable tab bar
npm install react-native-scrollable-tabs-hybrid
Typescript
Module System
Node Version
NPM Version
40.9
Supply Chain
55
Quality
65
Maintenance
50
Vulnerability
94.1
License
JavaScript (82.51%)
Objective-C (9.85%)
Python (3.85%)
Java (3.13%)
CSS (0.66%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
381 Commits
2 Branches
1 Contributors
Updated on Oct 25, 2019
Latest Version
0.1.0
Package Id
react-native-scrollable-tabs-hybrid@0.1.0
Unpacked Size
83.81 kB
Size
27.10 kB
File Count
12
NPM Version
6.4.1
Node Version
10.15.3
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
1
2
This is a fork of React Native Scrollable Tab View, which allows displaying both icon and label on the tabs.
npm install react-native-scrollable-tabs-hybrid --save
yarn add react-native-scrollable-tabs-hybrid
var ScrollableTabView = require('react-native-scrollable-tab-view');
1var ScrollableTabView = require('react-native-scrollable-tab-view'); 2 3var App = React.createClass({ 4 render() { 5 return ( 6 <ScrollableTabView> 7 <ReactPage tabLabel="React" /> 8 <FlowPage tabLabel="Flow" /> 9 <JestPage tabLabel="Jest" /> 10 </ScrollableTabView> 11 ); 12 } 13});
1<ScrollableTabView 2 renderTabBar={() => <DefaultTabBar tabStyle={s.tabBar} />} 3 tabBarTextStyle={s.tabBarText} 4 tabBarUnderlineStyle={s.tabBarUnderline} 5 tabBarActiveTextColor={'#eeeeee'} 6 tabBarInactiveTextColor={'#666666'} 7 tabBarBackgroundColor={'#111111'}> 8 <Recent tabLabel="Recent" /> 9 <Archived tabLabel="Archived" /> 10 </ScrollableTabView>
1var ScrollableTabView = require('react-native-scrollable-tab-view'); 2 3var App = React.createClass({ 4 render() { 5 return <ScrollableTabView 6 renderTabBar={() => <TabBar />} 7 tabBarPosition={"bottom"}> 8 <Home tabLabel={"Book"} icon="ios-create" /> 9 <History tabLabel={"History"} icon="ios-albums" /> 10 <Profile tabLabel={"Settings"} icon="ios-construct" /> 11 </ScrollableTabView> 12 } 13});
You can add your own custom tabBar. Here's an example:
1import React from 'react'; 2import { 3 View, 4 Text, 5 TouchableOpacity, 6} from 'react-native'; 7import Icon from 'react-native-vector-icons/Ionicons'; 8 9import s from './tabBar.scss'; 10import gs from '../../app.scss'; 11 12class TabBar extends React.Component { 13 icons = []; 14 15 constructor(props) { 16 super(props); 17 this.icons = []; 18 } 19 20 render() { 21 let {tabs, goToPage, activeTab, style, icons} = this.props; 22 23 return <View style={[s.tabs, style]}> 24 {tabs.map((tab, i) => { 25 return <TouchableOpacity key={tab} 26 onPress={() => goToPage(i)} 27 style={s.tab}> 28 <Icon 29 name={icons[i]} 30 size={25} 31 color={activeTab === i ? '#5e92f3' : '#999999'} 32 ref={(icon) => { this.icons[i] = icon; }} 33 /> 34 { 35 activeTab === i && tab && 36 <Text style={[gs.buttonText, s.tabCaption]}> { tab } </Text> 37 } 38 </TouchableOpacity>; 39 })} 40 </View>; 41 } 42} 43 44export default TabBar; 45
Issues are welcome. Please add a screenshot, if not screencast, of bug and code snippet. Quickest way to solve issue is to reproduce it on one of the examples.
Pull requests are very welcome.
Please see attached Licence
No vulnerabilities found.
Reason
license file detected
Details
Reason
binaries present in source code
Details
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no SAST tool detected
Details
Reason
Found 0/30 approved changesets -- score normalized to 0
Reason
security policy file not detected
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
98 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-05-05
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More