Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
@react-native-community/toolbar-android
Advanced tools
A React Native Component for Android Toolbar
@react-native-community/toolbar-android
A React component that wraps the Android-only Toolbar widget.
This is extracted from react-native per lean core initiative, which removed ToolbarAndroid
at v0.61. The goal of this repo is to house the original component and continue to improve and maintain a lean wrapper with zero dependency other than react and react-native.
yarn add @react-native-community/toolbar-android
or
npm install @react-native-community/toolbar-android --save
Now link the native code with your project:
# RN >= 0.60
npx pod-install
# RN < 0.60
react-native link @react-native-community/toolbar-android
android/settings.gradle
include ':react-native-community-toolbar-android'
project(':react-native-community-toolbar-android').projectDir = new File(rootProject.projectDir, '../node_modules/@react-native-community/toolbar-android/android')
android/app/build.gradle
dependencies {
...
implementation project(':react-native-community-toolbar-android')
}
android/app/src/main/.../MainApplication.java
On top, where imports are:
import com.reactnativecommunity.toolbarandroid.ReactToolbarPackage;
Add the toolbar-android
class to your list of exported packages.
@Override
protected List<ReactPackage> getPackages() {
return Arrays.asList(
new MainReactPackage(),
new ReactToolbarPackage()
);
}
react-native
moduleThis module was created when the ToolbarAndroid was split out from the core of React Native. To migrate to this module you need to follow the installation instructions above and then change you imports from:
import { ToolbarAndroid } from 'react-native';
to:
import ToolbarAndroid from '@react-native-community/toolbar-android';
see ToolbarAndroid
This module was extracted from react-native
core.
The library is released under the MIT licence. For more information see LICENSE
.
FAQs
A React Native Component for Android Toolbar
The npm package @react-native-community/toolbar-android receives a total of 7,999 weekly downloads. As such, @react-native-community/toolbar-android popularity was classified as popular.
We found that @react-native-community/toolbar-android demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 41 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
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.