
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
react-native-toolbar
Advanced tools
npm i react-native-toolbar --save##Basics
import React, {Component} from 'react'
import {StyleSheet, View, Text, Image} from 'react-native';
import Toolbar from 'react-native-toolbar';
class Main extends Component {
render() {
return (
<View style={styles.mainContainer}>
<Toolbar ref={(toolbar) => this.toolbar = toolbar}/>
</View>
);
}
}
static propTypes = {
backgroundColor: PropTypes.string,
borderColor: PropTypes.string,
shadowColor: PropTypes.string,
shadowOpacity: PropTypes.number,
shadowRadius: PropTypes.number,
toolbarHeight: PropTypes.number,
toolbarZIndex: PropTypes.number,
hoverIndent: PropTypes.number,
hover: PropTypes.bool,
animate: PropTypes.bool,
presets: PropTypes.object,
initialKey: PropTypes.oneOfType([
React.PropTypes.string,
React.PropTypes.number,
]),
keyboardType: PropTypes.string,
autoCapitalize: PropTypes.string,
returnKeyType: PropTypes.string,
placeholderTextColor: PropTypes.string,
inputTextSize: PropTypes.number,
inputTextColor: PropTypes.string,
};
static defaultProps = {
backgroundColor: WHITE,
borderColor: null,
shadowColor: BLACK,
shadowOpacity: 0.4,
shadowRadius: 2,
toolbarHeight: 50,
toolbarZIndex: 1,
hoverIndent: 15,
hover: false,
animate: true,
presets: null,
initialKey: null,
keyboardType: 'default',
autoCapitalize: 'none',
returnKeyType: 'search',
placeholderTextColor: BLACK,
};
| Prop | Description | Default |
|---|---|---|
hover | Makes the toolbar have a consistant hover effect. | false |
animate | Animated the transistions bewteen the changed in the toolbar. NOT YET IMPLEMENTED | false |
rightButton | Props object for the right button, the props that go in here can be found below | None |
leftButton | Props object for the left button, the props that go in here can be found below | None |
title | Props object for the title, the props that go in here can be found below | None |
search | Props object for search input, the props that go in here can be found below | None |
<Toolbar ref={(toolbar) => {this.toolbar = toolbar}} presets={{
toolbar1: {
hover: true,
rightButton: {
icon: 'bars',
iconStyle: {color: BLUE_LINK, fontSize: 25,},
iconFontFamily: 'FontAwesome',
onPress: () => {},
},
search: {
placeholderText: 'Where to Next?',
placeholderTextColor: BLUE_LINK,
textStyle: {color: 'grey', fontSize: 14},
onSubmit: () => {},
onFocus: () => {this.onSearchFocused()},
onTextChanged: (text) => {console.log(text)},
icon: 'search',
iconStyle: {color: BLUE_LINK, fontSize: 18,},
iconFontFamily: 'FontAwesome',
}
},
toolbar2: {
leftButton: {
icon: 'chevron-circle-left',
iconStyle: {color: BLUE_LINK, fontSize: 25,},
iconFontFamily: 'FontAwesome',
text: 'Back',
textStyle: {color: BLUE_LINK, fontSize: 14,},
onPress: () => {},
},
rightButton: {
icon: 'bars',
iconStyle: {color: BLUE_LINK, fontSize: 25,},
iconFontFamily: 'FontAwesome',
onPress: () => {},
},
},
}}/>
ref={(toolbar) => {this.toolbar = toolbar}}
this.toolbar.setKey(<YOUR TOOLBAR KEY>);
this.toolbar.setKey('toolbar1');
| Prop | Description | Default |
|---|---|---|
icon | What icon to show | None |
iconStyle | The icon style | None |
iconFontFamily | What font family the icon is to show | None |
text | What text to show | None |
textStyle | The text style | None |
onPress | On button press | None |
| Prop | Description | Default |
|---|---|---|
text | What text to show | None |
textStyle | The text style | None |
onPress | On button press | None |
| Prop | Description | Default |
|---|---|---|
text | What text to show | None |
textStyle | The text style | None |
placeholder | What placeholder to show | None |
placeholderColor | Placeholder color, takes the props of font family and and size from the text style. | None |
onTextChanged(text) | On text input changed | None |
onFocus | On text input focused | None |
onSubmit | On text input submited | None |
icon | What icon to show | None |
iconStyle | The icon style | None |
iconFontFamily | What font family the icon is to show | None |
FAQs
Adaptive toolbar for React Native
The npm package react-native-toolbar receives a total of 6 weekly downloads. As such, react-native-toolbar popularity was classified as not popular.
We found that react-native-toolbar 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.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.