
Security News
GitHub Actions Checkout Now Blocks Risky pull_request_target Checkouts
GitHub Actions checkout now blocks risky pull_request_target checkouts by default to help prevent pwn request supply chain attacks.
mkp-react-native-tab-view
Advanced tools
React Native TabView

$ npm install mkp-react-native-tab-view --save
IOS/Android
<TabView
style={{flex:1}}
tabs={[{
text:"tab1",
onPress:()=>{},
component:<Tab1/>
},{
text:"tab2",
component:<Tab2/>,
onHide:(tab,index)=>{
console.log(`tab${index} will be hidden`);
}
},{
text:"tab3",
component:<View style={{backgroundColor:"lightgray",flex:1,justifyContent:"center",alignItems:"center"}}>
<Text>Tab3</Text>
</View>
}]}
renderTabBar={(isActive,tab)=>{
console.log("render tab bar")
if(isActive){
return <Text style={{backgroundColor:"yellow",textAlign:"center",height:60,lineHeight:60}}>{tab.text}</Text>
}
return <Text style={{textAlign:"center",height:60,lineHeight:60}}>{tab.text}</Text>
}}>
</TabView>
This property is used to configure tab bar . you must provide a array , children can be any object. but some one is defined ,please see it following,
// type tab
type tab={
//tab content
component:Element,
//invoke when tab bar click
onPress:Function,
//invoke when tab content will be hidden
onHide:Function,
//any custom parameter
...otherParameter
};
This property specify how to render tab bar, the first parameter mark the bar whether is active, the second parameter refer to tabs's item. you must implement this method.
Marking the tab bar position when is top or bottom, the default value is "bottom".
the default value is 0.
it's contain "content" and "tabBar"
FAQs
TabView with React Native
The npm package mkp-react-native-tab-view receives a total of 0 weekly downloads. As such, mkp-react-native-tab-view popularity was classified as not popular.
We found that mkp-react-native-tab-view demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers 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 News
GitHub Actions checkout now blocks risky pull_request_target checkouts by default to help prevent pwn request supply chain attacks.

Product
Socket now supports Custom Roles and Repository Access Permissions so organizations can control who can access specific repositories and actions.

Product
Socket MCP now lets AI assistants review org alerts, investigate threats using the Socket threat feed, and inspect package files in addition to dependency scoring.