All Projects → Astrocoders → react-native-tooltip-view

Astrocoders / react-native-tooltip-view

Licence: MIT license
A deadly simple tooltip view that you can put whatever you want 🎉

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to react-native-tooltip-view

react-native-smooth-pull-to-refresh
Custom pull to refresh component for React Native
Stars: ✭ 36 (+100%)
Mutual labels:  recompose
Hocs
🍱 Higher-Order Components for React
Stars: ✭ 1,784 (+9811.11%)
Mutual labels:  recompose
learn-react-typescript
Learning React contents with TypeScript (Hooks, Redux)
Stars: ✭ 15 (-16.67%)
Mutual labels:  recompose
onetricks.net
(WIP) kayn-powered (typescript node.js) ReasonReact app presenting you a dashboard of high ELO one trick ponies in League of Legends
Stars: ✭ 13 (-27.78%)
Mutual labels:  recompose
purescript-recompose-todomvc
TodoMVC <<< React <<< Recompose <<< Redux $ PureScript
Stars: ✭ 28 (+55.56%)
Mutual labels:  recompose
react-compose-events
A Higher-Order Component factory to attach outside event listeners
Stars: ✭ 25 (+38.89%)
Mutual labels:  recompose
redux-fusion
React bindings for RxJS and Redux
Stars: ✭ 29 (+61.11%)
Mutual labels:  recompose
nextjs-redux-instagram
🌏 The simple Instagram was written by next.js & redux-saga & recompose
Stars: ✭ 48 (+166.67%)
Mutual labels:  recompose
hacker-hiring-hunt
👨‍💻 Tool for searching through Hacker News whoshiring threads
Stars: ✭ 28 (+55.56%)
Mutual labels:  recompose
reassemble
Fast Library for the Composition of React Higher-Order-Components
Stars: ✭ 67 (+272.22%)
Mutual labels:  recompose
firebase-ignite
Firebase PWA Boilerplate
Stars: ✭ 12 (-33.33%)
Mutual labels:  recompose
rgxp
Regular Expression Collection (ReactJS, Redux, React Router, Recompose, NodeJS, Express)
Stars: ✭ 62 (+244.44%)
Mutual labels:  recompose

react-native-tooltip-view

A dead simple tooltip view that you can populate yourself

Installation

$ yarn add react-native-tooltip-view

Be aware that this package depends on recompose and styled-components are peer dependencies. So if you aren't using them install with:

$ yarn add recompose styled-components

And you should totally give a try with those awesome packages!

Demo

alt text

Usage

import TooltipView from 'react-native-tooltip-view'
...

function Foo() {
  return (
    <TooltipView
      // `trigger` is what you want to be tapped by the user to toggle the tooltip visibility
      trigger={onPress => <RoundedIcon name="plus" size={20} roundSize={30} onPress={onPress} />}
      // you can pass an optional width for the tooltip
      width={200}
      // and also an optional background
      backgroundColor="#f9f9f9"
      // `triangleStyle`={{}} to style the little triangle
      // and any valid View props
    >
      {setMenuVisibility => (
        // anything you want in here
      )}
    </TooltipView>
  )
}
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].