
Security News
Crates.io Users Targeted by Phishing Emails
The Rust Security Response WG is warning of phishing emails from rustfoundation.dev targeting crates.io users.
@appandflow/expo-context-menu
Advanced tools
App & Flow is a Montreal-based React Native engineering and consulting studio. We partner with the world’s top companies and are recommended by Expo. Need a hand? Let’s build together. team@appandflow.com
Crossplatform Context Menu component - compatible with Expo managed apps. https://developer.apple.com/design/human-interface-guidelines/context-menus
With our library you can customize your context menu to have the look and feel of the native menus. You can see the full repository of this example here.
|
npm install @appandflow/expo-context-menu
Wrap your application with the ExpoContextMenuProvider
import { ExpoContextMenuProvider } from '@appanflow/expo-context-menu';
<ExpoContextMenuProvider>
<YourApp />
</ExpoContextMenuProvider>
Then you can use the lib with the ExpoContextMenu component
import { ExpoContextMenu } from '@appandflow/expo-context-menu';
<ExpoContextMenu
onPress={onPress}
menuItems={[
{
title: 'Add to Favorites',
onPress: () => null,
icon: <Icon name="Heart" color={colors.black1} size={18} />,
},
{
title: 'Share',
onPress: () => null,
icon: <Icon name="Share" color={colors.black1} size={18} />,
},
]}
>
<YourComponent />
</ExpoContextMenu>
Name | Description |
---|---|
menuItems | Custom items you can display when the context menu is open |
{
title: string;
icon?: React.ReactElement;
onPress: () => void;
destructive?: boolean;
}[];
Name | Description |
---|---|
renderMenu (optional) | Custom component to replace the container rendering the menuItems |
isFullScreen (optional) | Boolean to have the full screen layout animation |
onPress (optional) | Function to pass a custom event when pressing on the children |
onLongPressStart (optional) | Callback to customize the long press starting action |
onLongPressEnd (optional) | Callback to customize the long press ending action |
onMenuOpen (optional) | Callback to customize the children when the menu is open |
onMenuClose (optional) | Callback to customize the children when the menu closes |
itemScaleOnMenuOpen (optional) | Number to change the scale of the children when the menu is open (default to 0.97) |
See the contributing guide to learn how to contribute to the repository and the development workflow.
MIT
Made with create-react-native-library
FAQs
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 Rust Security Response WG is warning of phishing emails from rustfoundation.dev targeting crates.io users.
Product
Socket now lets you customize pull request alert headers, helping security teams share clear guidance right in PRs to speed reviews and reduce back-and-forth.
Product
Socket's Rust support is moving to Beta: all users can scan Cargo projects and generate SBOMs, including Cargo.toml-only crates, with Rust-aware supply chain checks.