--- id: examples title: Examples slug: /examples --- :::info If you want to see full examples in your phone or simulator, you can clone [this showcase project](https://github.com/enesozturk/react-native-hold-menu-expo-example) and run in seconds with Expo 🔥 ::: ## Configuring List ### Sample List **Code** ```js {} }, { text: 'Edit', onPress: () => {} }, { text: 'Delete', onPress: () => {} }, ]} /> ``` **Result** ![list-simple](/img/examples/list-simple.png) ### List with title **Code** ```js {} }, { text: 'Reply', onPress: () => {} }, { text: 'Edit', onPress: () => {} }, { text: 'Delete', onPress: () => {} }, ]} /> ``` **Result** ![list-with-title](/img/examples/list-with-title.png) ### List with seperator **Code** ```js {} }, { text: 'Reply', onPress: () => {} }, { text: 'Edit', onPress: () => {} }, { text: 'Delete', withSeperator: true, onPress: () => {} }, { text: 'Share', onPress: () => {} }, ]} /> ``` **Result** ![list-with-seperator](/img/examples/list-with-seperator.png) ### List with destructive button **Code** ```js {} }, { text: 'Reply', onPress: () => {} }, { text: 'Edit', onPress: () => {} }, { text: 'Delete', withSeperator: true, isDestructive: true, onPress: () => {}, }, { text: 'Share', onPress: () => {} }, ]} /> ``` **Result** ![list-with-destructive](/img/examples/list-with-destructive.png) ### List with icons **Code** ```js {} }, { text: 'Home', icon: () => , onPress: () => {}, }, { text: 'Edit', icon: () => , onPress: () => {}, }, { text: 'Delete', icon: () => , withSeperator: true, isDestructive: true, onPress: () => {}, }, { text: 'Share', icon: () => , onPress: () => {}, }, { text: 'More', icon: () => , onPress: () => {}, }, ]} /> ``` **Result** ![list-with-destructive](/img/examples/list-with-icons.png)