diff --git a/README.md b/README.md index d1ab281..8f407ba 100644 --- a/README.md +++ b/README.md @@ -13,8 +13,9 @@ Features: * Can work as controlled as well as uncontrolled component * Different lifecycle hooks -![Popup menu demo](./android.demo.gif) -![Popup menu demo](./android.demo-popover.gif) +| Context Menu, Slide-in Menu | Popover | +|---|---| +|![Popup menu demo](./android.demo.gif)|![Popup menu demo](./android.demo-popover.gif)| ## Installation diff --git a/android.demo.gif b/android.demo.gif index 4bd5226..b69f246 100644 Binary files a/android.demo.gif and b/android.demo.gif differ diff --git a/examples/Example.js b/examples/Example.js index 11200a3..93f47b7 100644 --- a/examples/Example.js +++ b/examples/Example.js @@ -60,10 +60,10 @@ export default class Example extends Component { this.selectNumber(value)}> - Slide-in menu... + Slide-in menu... - - + + @@ -78,9 +78,9 @@ export default class Example extends Component { onClose={() => this.addLog('menu is closing')} > - Context menu... + Context menu... - + @@ -97,11 +97,11 @@ export default class Example extends Component { const textStyle = {color: l.highlighted ? 'red' : 'gray'}; return ( - {l.value} + {l.value} - - + + this.toggleHighlight(l.id)} text={l.highlighted ? 'Unhighlight' : 'Highlight'} /> this.deleteLogItem(l.id)} text='Delete' /> @@ -152,4 +152,10 @@ const styles = StyleSheet.create({ flexDirection: 'row', padding: 8, }, + slideInOption: { + padding: 5, + }, + text: { + fontSize: 18, + } }); diff --git a/examples/PopoverExample.js b/examples/PopoverExample.js index 231e551..2641224 100644 --- a/examples/PopoverExample.js +++ b/examples/PopoverExample.js @@ -16,7 +16,7 @@ const MyPopover = () => ( {'\u263A'} - Hello world! + Hello world! ) @@ -50,14 +50,13 @@ const styles = StyleSheet.create({ padding: 10, flexDirection: 'column', justifyContent: 'space-between', + backgroundColor: 'rgba(0, 0, 0, 0.05)', }, row: { flexDirection: 'row', justifyContent: 'space-between', }, backdrop: { - backgroundColor: 'black', - opacity: 0.3, }, menuOptions: { padding: 50, @@ -68,6 +67,9 @@ const styles = StyleSheet.create({ triggerText: { fontSize: 20, }, + contentText: { + fontSize: 18, + }, }) export default PopoverExample;