
Security News
The Hidden Blast Radius of the Axios Compromise
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.
@devlander/higher-order-components
Advanced tools
A comprehensive collection of higher-order components for React and React Native projects, enhancing functionality and development efficiency.

The Devlander React Native Higher Order Components Collection is a comprehensive library of React Native higher-order-components, 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.
isVisible property down to the next component, which can be used to pass to another function.You can install the Devlander React Native Higher Order Components Collection using npm or yarn:
npm install @devlander/higher-order-components
yarn add @devlander/higher-order-components
import React from "react";
import { View, Text } from "react-native";
import { withBorders } from "@devlander/higher-order-components";
interface MyComponentProps {
message: string;
withBorders?: boolean;
borderColor?: string;
}
const MyComponent: React.FC<MyComponentProps> = ({ message, withBorders, borderColor }) => (
<View>
<Text>{message}</Text>
</View>
);
const EnhancedComponent = withBorders(MyComponent);
// Usage example
<EnhancedComponent message="Hello, world!" withBorders={true} borderColor="blue" />
import React from "react";
import { View, Text } from "react-native";
import { withLogProps } from "@devlander/higher-order-components";
interface MyComponentProps {
message: string;
}
const MyComponent: React.FC<MyComponentProps> = ({ message }) => (
<View>
<Text>{message}</Text>
</View>
);
const EnhancedComponent = withLogProps(MyComponent);
// Usage example
<EnhancedComponent message="Hello, world!" />
// This would console.log("Actual Props: ", { message: "Hello, world!" })
import React from "react";
import { View, Text } from "react-native";
import { withVisibilitySensor } from "@devlander/higher-order-components";
interface MyComponentProps {
isVisible: boolean;
message: string;
}
const MyComponent: React.FC<MyComponentProps> = ({ isVisible, message }) => (
<View>
<Text>{isVisible ? "Visible" : "Not Visible"}: {message}</Text>
</View>
);
const EnhancedComponent = withVisibilitySensor(MyComponent);
// Usage example
<EnhancedComponent message="Hello, world!" />
import React from "react";
import { View, Text } from "react-native";
import { withMediaQueryInfo, WithMediaQueryProps } from "@devlander/higher-order-components";
interface MyComponentProps extends WithMediaQueryProps {
message: string;
}
const MyComponent: React.FC<MyComponentProps> = ({ mediaQueryInfo, message }) => (
<View>
<Text>{mediaQueryInfo.large ? "Large Screen" : "Small Screen"}: {message}</Text>
<Text>Media Query Info:</Text>
<Text>xSmall: {mediaQueryInfo.xSmall.toString()}</Text>
<Text>Small: {mediaQueryInfo.small.toString()}</Text>
<Text>Medium: {mediaQueryInfo.medium.toString()}</Text>
<Text>Large: {mediaQueryInfo.large.toString()}</Text>
<Text>xLarge: {mediaQueryInfo.xLarge.toString()}</Text>
<Text>xxLarge: {mediaQueryInfo.xxLarge.toString()}</Text>
<Text>Platform: {mediaQueryInfo.platform}</Text>
</View>
);
const EnhancedComponent = withMediaQueryInfo(MyComponent);
// Usage example
<EnhancedComponent message="Hello, world!" />
import React from "react";
import { View, Text } from "react-native";
import { withSpinner } from "@devlander/higher-order-components";
interface MyComponentProps extends WithSpinnerProps {
message: string;
}
const MyComponent: React.FC<MyComponentProps> = ({ message, shouldSpin, spinnerComponent }) => (
// If `shouldSpin` is true, a spinner would show instead of this component.
<View>
<Text>{message}</Text>
</View>
);
const EnhancedComponent = withSpinner(MyComponent);
// Usage example
<EnhancedComponent shouldSpin={true} message="Loading..." />
// Usage with custom spinner component
const CustomSpinner: React.FC = () => (
<View>
<Text>Loading...</Text>
</View>
);
// Enhanced component with custom spinner
const EnhancedComponentWithCustomSpinner = withSpinner(MyComponent);
// In the application
<EnhancedComponentWithCustomSpinner shouldSpin={true} spinnerComponent={CustomSpinner} message="Hello, world!" />
Contributions are welcome! Please read our contributing guidelines first.
This project is licensed under the Apache License - see the LICENSE file for details.
FAQs
A comprehensive collection of higher-order components for React and React Native projects, enhancing functionality and development efficiency.
We found that @devlander/higher-order-components demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 0 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
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.

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.