
Research
Supply Chain Attack on Axios Pulls Malicious Dependency from npm
A supply chain attack on Axios introduced a malicious dependency, plain-crypto-js@4.2.1, published minutes earlier and absent from the project’s GitHub releases.
@devlander/hooks
Advanced tools
![]()
The Devlander React Native Hooks Collection is a comprehensive library of React Native hooks, designed for seamless integration and addressing common development challenges. This collection streamlines your development process, offering versatile, cross-platform solutions for a variety of use cases.
You can install the Devlander React Native Hooks Collection using npm or yarn:
npm
npm install @devlander/hooks
or
yarn
yarn add @devlander/hooks
Each hook in the collection is designed for easy integration. Here are examples of how to use some of our featured hooks:
// ScrollControlComponent.tsx
import React from 'react';
import { Button, View } from 'react-native';
import { useScrollControl } from '@devlander/hooks'; // Adjust the import path as needed
const ScrollControlComponent = () => {
const { disableScroll, enableScroll } = useScrollControl();
return (
<View>
<Button title="Disable Scrolling" onPress={disableScroll} />
<Button title="Enable Scrolling" onPress={enableScroll} />
<View style={{ height: 1000, backgroundColor: '#f0f0f0' }}>
<Text>Scroll down to see more content...</Text>
</View>
</View>
);
};
export default ScrollControlComponent;
// ExampleComponent.tsx
import React from 'react';
import { View, Text, StyleSheet } from 'react-native';
import { useScreenDimensions } from '@devlander/hooks'; // Adjust the import path as needed
const ExampleComponent = () => {
const { width, height } = useScreenDimensions();
return (
<View style={styles.container}>
<Text>Screen Width: {width}</Text>
<Text>Screen Height: {height}</Text>
</View>
);
};
const styles = StyleSheet.create({
container: {
flex: 1,
justifyContent: 'center',
alignItems: 'center',
},
});
export default ExampleComponent;
// MyVisibilityComponent.tsx
import React from 'react';
import { View, Text } from 'react-native';
import { useVisibilitySensor } from '@devlander/hooks'; // Adjust import path
const MyVisibilityComponent = () => {
const viewRef = useVisibilitySensor(isVisible => console.log(`Is Visible: ${isVisible}`));
return (
<View ref={viewRef} style={{ height: 100, width: 100, backgroundColor: 'blue' }}>
<Text>Visibility Tracking Component</Text>
</View>
);
};
export default MyVisibilityComponent;
This package is open-source, available under the MIT License.
To do write documentation on the providers and how you can tie them into the hook
FAQs
Hooks used in projects
We found that @devlander/hooks 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.

Research
A supply chain attack on Axios introduced a malicious dependency, plain-crypto-js@4.2.1, published minutes earlier and absent from the project’s GitHub releases.

Research
Malicious versions of the Telnyx Python SDK on PyPI delivered credential-stealing malware via a multi-stage supply chain attack.

Security News
TeamPCP is partnering with ransomware group Vect to turn open source supply chain attacks on tools like Trivy and LiteLLM into large-scale ransomware operations.