
Security News
Browserslist-rs Gets Major Refactor, Cutting Binary Size by Over 1MB
Browserslist-rs now uses static data to reduce binary size by over 1MB, improving memory use and performance for Rust-based frontend tools.
react-native-contextual
Advanced tools
Context menu like UIContextMenuInteraction
on iOS
npm install react-native-contextual
Pass component to background
prop of ContextualRoot
. You can found an Example in App.tsx
import { GestureHandlerRootView } from 'react-native-gesture-handler';
import { ContextualBackground, ContextualRoot } from 'react-native-contextual';
function App() {
return (
<GestureHandlerRootView style={{ flex: 1 }}>
<ContextualRoot
offsetTop={80}
offsetBottom={20}
background={<ContextualBackground />}
>
{/* Your code here */}
</ContextualRoot>
</GestureHandlerRootView>
);
}
const result = await multiply(3, 7);
import { Contextual, ContextualMenu } from 'react-native-contextual';
function ContextedComponent() {
return (
<Contextual
style={{}}
Menu={ContextualMenu}
menuProps={{
actions: [
{ key: 'Action1', label: 'Action1', action: () => {} },
{
key: 'Action2',
label: 'Action2',
action: () => {},
color: 'red',
},
],
}}
>
{/* Some Component */}
</Contextual>
);
}
The source code for the example (showcase) app is under the Example directory. If you want to play with the API but don't feel like trying it on a real app, you can run the example project. Check Example/ directory README for installation instructions.
See the contributing guide to learn how to contribute to the repository and the development workflow.
MIT
Made with create-react-native-library
FAQs
context menu
The npm package react-native-contextual receives a total of 12 weekly downloads. As such, react-native-contextual popularity was classified as not popular.
We found that react-native-contextual 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.
Security News
Browserslist-rs now uses static data to reduce binary size by over 1MB, improving memory use and performance for Rust-based frontend tools.
Research
Security News
Eight new malicious Firefox extensions impersonate games, steal OAuth tokens, hijack sessions, and exploit browser permissions to spy on users.
Security News
The official Go SDK for the Model Context Protocol is in development, with a stable, production-ready release expected by August 2025.