Security News
38% of CISOs Fear They’re Not Moving Fast Enough on AI
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
react-native-drawer-layout
Advanced tools
A platform-agnostic drawer layout. Pure JavaScript implementation on iOS and native implementation on Android. Why? Because the drawer layout is a useful component regardless of the platform! And if you can use it without changing any code, that's perfect
A platform-agnostic drawer layout. It uses a pure JavaScript implementation on every platform to ensure consistency. We try to keep it up to date with the implementation of DrawerLayoutAndroid and add features we see as necessary too.
npm install react-native-drawer-layout --save
var DrawerLayout = require('react-native-drawer-layout').default;
import DrawerLayout from 'react-native-drawer-layout';
This includes the differences between our implementation and the official one DrawerLayoutAndroid. Every breaking change is (hopefully) hidden behind a feature flag, so that this implementation may also be used as polyfill.
To run the demo please run npm install
in the DrawerLayoutExample/
directory and start the demo up from there like any other React Native application.
React Native Version | react-native-drawer-layout Version |
---|---|
>= 11 & < 23 | < 1.0 |
>= 23 | >= 1.0 |
If you experience any further restrictions with other versions, please let us know.
zIndex
of 1000 so setting a higher zIndex
somewhere else may lead to inconsistencies.Please make sure to run the tests before proposing a PR by running npm test
.
FAQs
Drawer component for React Native
The npm package react-native-drawer-layout receives a total of 60,081 weekly downloads. As such, react-native-drawer-layout popularity was classified as popular.
We found that react-native-drawer-layout demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 7 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
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Research
Security News
Socket researchers uncovered a backdoored typosquat of BoltDB in the Go ecosystem, exploiting Go Module Proxy caching to persist undetected for years.
Security News
Company News
Socket is joining TC54 to help develop standards for software supply chain security, contributing to the evolution of SBOMs, CycloneDX, and Package URL specifications.