Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
rn-tooltip-jz
Advanced tools
[![npm version](https://badge.fury.io/js/rn-tooltip.svg)](https://badge.fury.io/js/rn-tooltip)
Simple, lightwweight and blazing fast react native tooltip
Expo App if you want to try it out: https://expo.io/@andreixoc/RNTooltipTester
Code for the Expo app is here: https://github.com/andreiCalazans/rnTooltipTester
yarn add rn-tooltip
or
npm install rn-tooltip --save
import { Text } from 'react-native';
import Tooltip from 'rn-tooltip';
...
<Tooltip popover={<Text>Info here</Text>}>
<Text>Press me</Text>
</Tooltip>
backgroundColor
containerStyle
height
highlightColor
onClose
onOpen
pointerColor
pointerStyle
popover
actionType
width
withOverlay
overlayColor
withPointer
toggleWrapperProps
backgroundColor
sets backgroundColor of the tooltip and pointer.
Type | Default |
---|---|
string | #617080 |
containerStyle
Passes style object to tooltip container
Type | Default |
---|---|
object (style) | inherited styling |
height
Tooltip container height. Necessary in order to render the container in the correct place. Pass height according to the size of the content rendered inside the container.
Type | Default |
---|---|
number | string |
highlightColor
Color to highlight the item the tooltip is surrounding.
Type | Default |
---|---|
string | transparent |
onClose
function which gets called on closing the tooltip.
Type | Default |
---|---|
function | () => {} |
onOpen
function which gets called on opening the tooltip.
Type | Default |
---|---|
function | () => {} |
pointerColor
Color of tooltip pointer, it defaults to the
backgroundColor
if none is passed .
Type | Default |
---|---|
string | backgroundColor |
pointerStyle
Passes style object to tooltip pointer view
Type | Default |
---|---|
object (style) | inherited styling |
popover
Component to be rendered as the display container.
Type | Default |
---|---|
React.Element | null |
actionType
Flag to determine how the tooltip reacts to presses.
Type | Default |
---|---|
press or none or longPress | press |
width
Tooltip container width. Necessary in order to render the container in the correct place. Pass height according to the size of the content rendered inside the container.
Type | Default |
---|---|
number | number |
withOverlay
Flag to determine whether or not dislay overlay shadow when tooltip is open.
Type | Default |
---|---|
boolean | true |
overlayColor
Sets backgroundColor of the overlay.
Type | Default |
---|---|
string | rgba(250, 250, 250, 0.70) |
withPointer
Flag to determine whether or not dislay pointer.
Type | Default |
---|---|
boolean | true |
toggleWrapperProps
Drills TouchableOpacity Props down to the TouchableOpacity wrapper that toggles the Tooltip.
Type | Default |
---|---|
TouchableOpacityProps | {} |
MIT Licensed
FAQs
[![npm version](https://badge.fury.io/js/rn-tooltip.svg)](https://badge.fury.io/js/rn-tooltip)
The npm package rn-tooltip-jz receives a total of 0 weekly downloads. As such, rn-tooltip-jz popularity was classified as not popular.
We found that rn-tooltip-jz demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.