Socket
Socket
Sign inDemoInstall

react-native-tooltip-menu

Package Overview
Dependencies
Maintainers
1
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-native-tooltip-menu - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

2

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc