New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

react-native-dw-tooltip

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-native-dw-tooltip

This is a tooltip component compatible with te RN >= 0.51.0.

latest
Source
npmnpm
Version
0.1.1
Version published
Maintainers
1
Created
Source

Tooltip component

This is a tooltip component compatible with te RN >= 0.51.0.

Enjoy it!

Getting Started

Exemple

[![Exemple](https://i.imgur.com/vKb2F1B.png)](./video/tooltip.mov)

Installing

$ npm install --save react-native-dw-tooltip

Props

NameTypeRequiredDefault valueDescription
childrenReact.Nodefalse-A component that will be rendered inside the Tooltip.
labelStringtrue-A string that be message content.
lightIconBooleanfalse"false"Color for icon tip.
position'top' or 'bottom'false"bottom"Position that tooltip will be render
tooltipContainerStyleTStylefalse-Style of the container of the entire tooltip label.
triangleOffsetNumberfalse0Number of pixels to offset triangle from center. Positive numbers will push right. Negative Numbers will push left.
styleTStylefalse-Tooltip global container

Usage example

  ...
  import Tooltip from 'react-native-dw-tooltip' 
  ...

  render() {
    ...

    return (
      <Tooltip
        ligthIcon
        label="ASijic sdi aos aosd e lopess deirmmaie weoae o
        aioermn ferrie ra sper psirnmci aeid einfie einfie a
        eifien ai ie ief ei aimeidmeif aimaed aiede aimd aev
        relax, this is just a exemple."
      />
    )
  ...
  ...

  render() {
      ...

    return (
      <Tooltip
        position="top"
        label="The container width and height is variable by content"
      > 
        <Text> I Love Cheese </Text>
      </Tooltip>
    )
  ...

License

MIT

Contribution

PR are welcome!

Keywords

react-native

FAQs

Package last updated on 06 Jun 2019

Did you know?

Socket

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.

Install

Related posts