Security News
NIST Misses 2024 Deadline to Clear NVD Backlog
NIST has failed to meet its self-imposed deadline of clearing the NVD's backlog by the end of the fiscal year. Meanwhile, CVE's awaiting analysis have increased by 33% since June.
@logicwind/react-native-fold-detection
Advanced tools
The purpose of the package is to provide details regarding the Android folding capability.
The purpose of the package is to provide details regarding the Android folding capability.
npm install react-native-fold-detection
You'll need to disable auto-linking for this package. To do so, create react-native.config.js in the root of your project with this content:
module.exports = {
dependencies: {
"react-native-fold-detection": {
platforms: {
ios: null, // this will disable autolinking for this package on iOS
},
},
},
};
import * as React from "react";
import { FoldingFeatureProvider } from "react-native-fold-detection";
import SampleScreen from "./SampleScreen";
export default function App() {
return (
<FoldingFeatureProvider>
<SampleScreen />
</FoldingFeatureProvider>
);
}
import { useFoldingFeature } from "react-native-fold-detection";
const { layoutInfo, isTableTop, isBook, isFlat } = useFoldingFeature();
Prop | Type | Default | Description |
---|---|---|---|
layoutInfo | LayoutInfo | Folding Feature from android doc | |
isTableTop | boolean | false | HALF_OPENED & HORIZONTAL |
isBook | boolean | false | HALF_OPENED & VERTICAL |
isFlat | boolean | true |
MIT
Made with create-react-native-library
FAQs
The purpose of the package is to provide details regarding the Android folding capability.
The npm package @logicwind/react-native-fold-detection receives a total of 6 weekly downloads. As such, @logicwind/react-native-fold-detection popularity was classified as not popular.
We found that @logicwind/react-native-fold-detection demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 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
NIST has failed to meet its self-imposed deadline of clearing the NVD's backlog by the end of the fiscal year. Meanwhile, CVE's awaiting analysis have increased by 33% since June.
Security News
Cloudflare has launched a setup wizard allowing users to easily create and manage a security.txt file for vulnerability disclosure on their websites.
Security News
The Socket Research team breaks down a malicious npm package targeting the legitimate DOMPurify library. It uses obfuscated code to hide that it is exfiltrating browser and crypto wallet data.