---
id: usage
title: Usage
slug: /usage
hide_table_of_contents: true
hide_title: true
---
## Usage
Before using Hold Menu in your application, you need to wrap your app with `HoldMenuProvider` first.
```tsx
import React from 'react';
import { HoldMenuProvider } from 'react-native-hold-menu';
const App = () => {
return (
{/* Your app components */}
);
};
export default App;
```
Now you can wrap your components with `HoldItem`. You need to set [items](/react-native-hold-menu/docs/props#items) prop and also see other optional props for your menu.
```tsx
import React from 'react';
import { View } from 'react-native';
import { HoldItem } from 'react-native-hold-menu';
import styles from './styles';
const MenuItems = [
{ text: 'Actions', isTitle: true, onPress: () => {} },
{ text: 'Action 1', onPress: () => {} },
{ text: 'Action 2', withSeperator: true, onPress: () => {} },
{ text: 'Action 3', isDestructive: true, onPress: () => {} },
];
const Example = () => {
return (
);
};
export default Example;
```