Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
@types/react-native-tab-navigator
Advanced tools
TypeScript definitions for react-native-tab-navigator
npm install --save @types/react-native-tab-navigator
This package contains type definitions for react-native-tab-navigator (https://github.com/exponentjs/react-native-tab-navigator#readme).
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-native-tab-navigator.
import * as React from "react";
import { TextStyle, ViewStyle } from "react-native";
export interface TabNavigatorProps {
children?: React.ReactNode;
/**
* Define for rendered scene
*/
sceneStyle?: ViewStyle | undefined;
/**
* Define style for TabBar
*/
tabBarStyle?: ViewStyle | undefined;
/**
* Define shadow style for tabBar
*/
tabBarShadowStyle?: ViewStyle | undefined;
/**
* Disable onPress opacity for Tab
*
* @default false
*/
hidesTabTouch?: boolean | undefined;
}
interface TabNavigatorItemProps {
/**
* Allow font scaling for title
*/
allowFontScaling?: boolean | undefined;
/**
* Text for Item badge
*/
badgeText?: string | number | undefined;
children?: React.ReactNode;
/**
* Return whether the item is selected
*/
selected?: boolean | undefined;
/**
* Styling for selected Item title
*/
selectedTitleStyle?: TextStyle | undefined;
/**
* Styling for tab
*/
tabStyle?: ViewStyle | undefined;
/**
* Item title
*/
title?: string | undefined;
/**
* Styling for Item title
*/
titleStyle?: TextStyle | undefined;
/**
* onPress method for Item
*/
onPress?(): void;
/**
* Returns Item badge
*/
renderBadge?(): React.JSX.Element;
/**
* Returns Item icon
*/
renderIcon?(): React.JSX.Element;
/**
* Returns selected Item icon
*/
renderSelectedIcon?(): React.JSX.Element;
}
export class TabNavigator extends React.Component<TabNavigatorProps, any> {}
export namespace TabNavigator {
class Item extends React.Component<TabNavigatorItemProps, any> {}
}
export default TabNavigator;
These definitions were written by Kyle Roach.
FAQs
TypeScript definitions for react-native-tab-navigator
The npm package @types/react-native-tab-navigator receives a total of 43 weekly downloads. As such, @types/react-native-tab-navigator popularity was classified as not popular.
We found that @types/react-native-tab-navigator demonstrated a healthy version release cadence and project activity because the last version was released less than 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’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.