react-native-tooltip-menu
Advanced tools
Comparing version 1.0.0 to 1.0.1
{ | ||
"name": "react-native-tooltip-menu", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "ReactNative component showing tooltip with menu items.", | ||
@@ -5,0 +5,0 @@ "main": "src/index.js", |
# react-native-tooltip-menu | ||
Currently works only with `iOS`. `Android` coming soon. | ||
This component is a clickable button which will show you a tooltip menu with clickable menu. | ||
You can very easily customize how the component will look like. | ||
# How to install | ||
```bash | ||
npm install react-native-tooltip-menu --save | ||
``` | ||
# Example | ||
```js | ||
import MenuTooltip from 'react-native-tooltip-menu'; | ||
const YourContainer = ({ onClick }) => ( | ||
<MenuTooltip | ||
buttonComponent={ | ||
<View> | ||
<Text>Click me to show tooltip!</Text> | ||
</View> | ||
} | ||
items={[ | ||
{ | ||
label: 'Label #1', | ||
onPress: () => console.log('Pressed Label #1'), | ||
}, | ||
{ | ||
label: 'Label #2', | ||
onPress: onClick, | ||
}, | ||
]} | ||
/> | ||
); | ||
``` | ||
# License | ||
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
32930
41