0.1.1 • Published 5 years ago

react-native-dw-tooltip v0.1.1

Weekly downloads
1
License
MIT
Repository
github
Last release
5 years ago

Tooltip component

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

Enjoy it!

Getting Started

Exemple

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!

0.1.1

5 years ago

0.1.0

5 years ago

0.0.2

5 years ago

0.0.1

5 years ago