Skip to content

Commit b8a8018

Browse files
committed
docs: webp demo of context menu items
1 parent 06455b9 commit b8a8018

2 files changed

Lines changed: 8 additions & 1 deletion

File tree

docs/docs/guides/custom-context-menu.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ The `contextMenuItems` prop lets you add your own actions to the native
88
text-selection menu - the popover that e.g. shows **Copy / Paste / Cut** when the
99
user long-presses selected text.
1010

11+
![Demo of the context menu feature](/assets/context-menu-demo.webp)
12+
1113
:::info
1214

1315
This is a **native-only** feature (iOS and Android) - which
@@ -113,7 +115,12 @@ export default function App() {
113115
}
114116

115117
const styles = StyleSheet.create({
116-
container: { gap: 12 },
118+
container: {
119+
flex: 1,
120+
padding: 32,
121+
alignItems: 'center',
122+
justifyContent: 'center',
123+
},
117124
input: {
118125
fontSize: 18,
119126
color: '#232736',
7.19 MB
Loading

0 commit comments

Comments
 (0)