Gathering detailed insights and metrics for react-native-scrollable-tab-view-collapsible-header-v0
Gathering detailed insights and metrics for react-native-scrollable-tab-view-collapsible-header-v0
Gathering detailed insights and metrics for react-native-scrollable-tab-view-collapsible-header-v0
Gathering detailed insights and metrics for react-native-scrollable-tab-view-collapsible-header-v0
Add collapsible headers for react-native-scrollable-tab-view
npm install react-native-scrollable-tab-view-collapsible-header-v0
Typescript
Module System
Node Version
NPM Version
60.9
Supply Chain
95
Quality
73.9
Maintenance
100
Vulnerability
100
License
TypeScript (94.12%)
JavaScript (5.88%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
20 Stars
12 Commits
5 Forks
2 Watchers
1 Branches
2 Contributors
Updated on Dec 22, 2024
Latest Version
0.0.5
Package Id
react-native-scrollable-tab-view-collapsible-header-v0@0.0.5
Unpacked Size
12.19 kB
Size
3.41 kB
File Count
7
NPM Version
6.13.4
Node Version
10.19.0
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
Extend react-native-scrollable-tab-view to have shared collapsible headers
Please check the base library before using this library.
1import * as React from 'react'; 2import { 3 View, 4 ScrollView, 5} from 'react-native'; 6import { HPageViewHoc } from 'react-native-head-tab-view' 7import { CollapsibleHeaderTabView } from 'react-native-scrollable-tab-view-collapsible-header' 8const HScrollView = HPageViewHoc(ScrollView) 9 10export default class ExampleBasic extends React.PureComponent<any> { 11 12 render() { 13 return ( 14 <CollapsibleHeaderTabView 15 makeHeaderHeight={() => 200} 16 renderScrollHeader={() => <View style={{ height: 200, backgroundColor: 'red' }} />} 17 > 18 <HScrollView index={0}> 19 <View style={{ height: 1000, backgroundColor: '#ff4081' }} /> 20 </HScrollView> 21 <HScrollView index={1}> 22 <View style={{ height: 1000, backgroundColor: '#673ab7' }} /> 23 </HScrollView> 24 </CollapsibleHeaderTabView> 25 ) 26 } 27}
More examples:Example
1 2yarn add react-native-head-tab-view react-native-gesture-handler
1yarn add react-native-scrollable-tab-view-collapsible-header
1import { CollapsibleHeaderTabView ,SlideTabView} from 'react-native-scrollable-tab-view-collapsible-header'
CollapsibleHeaderTabView
and SlideTabView
extends the props for the tabs component by adding the CollapsibleHeaderProps
renderScrollHeader
(React.ComponentTyperender the collapsible header
1renderScrollHeader={()=><View style={{height:180,backgroundColor:'red'}}/>}
makeHeaderHeight
(require)The height of collapsible header.
1<CollapsibleHeaderTabView 2 makeHeaderHeight={() => 180} 3/>
tabbarHeight
The height of collapsible tabbar
If this parameter is set, the initial rendering performance will be improved.
frozeTop
The height at which the top area of the Tabview is frozen
overflowHeight
Sets the upward offset distance of the TabView and TabBar
makeScrollTrans
(scrollValue: Animated.Value) => voidGets the animation value of the shared collapsible header.
1<CollapsibleHeaderTabView 2 makeScrollTrans={(scrollValue: Animated.Value) => { 3 this.setState({ scrollValue }) 4 }} 5/>
onStartRefresh
(() => void)If provided, a standard RefreshControl will be added for "Pull to Refresh" functionality.
Make sure to also set the isRefreshing prop correctly.
isRefreshing
(boolean)Whether the TabView is refreshing
renderRefreshControl
(() => React.ReactElement)A custom RefreshControl
refreshHeight
(number)If this height is reached, a refresh event will be triggered (onStartRefresh)
scrollEnabled
(boolean)Whether to allow the scene to slide vertically
makeRoomInRefreshing
(boolean)Does the ListView leave a space of "refreshHeight" while the ListView is pull-down. it defaults to true
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
0 existing vulnerabilities detected
Reason
Found 1/11 approved changesets -- score normalized to 0
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
license file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Score
Last Scanned on 2025-07-07
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