• Stars
    star
    304
  • Rank 134,328 (Top 3 %)
  • Language
    JavaScript
  • License
    MIT License
  • Created about 6 years ago
  • Updated 7 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A <Tooltip /> component for React Native

npm version

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

Install

yarn add rn-tooltip

or

npm install rn-tooltip --save

Usage

import { Text } from 'react-native';
import Tooltip from 'rn-tooltip';

...

<Tooltip popover={<Text>Info here</Text>}>
  <Text>Press me</Text>
</Tooltip>

Props


Reference

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

More Repositories

1

hackernews-react-relay

Simple hackernews relay app, using all Relay's HOCs.
JavaScript
28
star
2

react-moving-forward-example

An example of App of the Usage of React Hooks APIs together with Suspense.
TypeScript
19
star
3

RNStorybook

React native integrated with storybook + auto loader
JavaScript
12
star
4

endpoint-testar

Lightweight function helper to test the result of an endpoint against a type model.
JavaScript
11
star
5

TheYearOfGraphQL

The year of GraphQL, React + Relay + GraphQL.
8
star
6

tailwind-ai-generator

TypeScript
8
star
7

BookBarter

BookBarter A book trading club without involving money
JavaScript
6
star
8

graphql-subscriptions-server

Graphql server example with subscriptions and authentication.
JavaScript
6
star
9

graphql-relay-server-starter

Graphql + Relay simple server to start testing
JavaScript
5
star
10

andrei-calazans-blog

My Blog
MDX
5
star
11

nvim

Personal nvim config
Lua
5
star
12

HN_react_native_relay

Hacker News React Native Relay App.
JavaScript
4
star
13

DISC

self assessment app, based on four personality characteristics
JavaScript
4
star
14

rgrjs

Relay Grapql app
JavaScript
4
star
15

learnKoa

Using Koa js examples
JavaScript
3
star
16

YouiTestApp

React Native test app using You Engine One https://www.youi.tv/youi-engine/
Ruby
3
star
17

voting-app

Full stack voting app that allows you to create and vote on polls
JavaScript
3
star
18

TestGoogleSignin

Simple google auth example using react-native-google-sign.
Objective-C
3
star
19

multi-docker

Multiple container docker example pushed to Docker hub.
JavaScript
2
star
20

native_rgrjs

React Native app integrated with Graphql + relay
JavaScript
2
star
21

poormanStorybook

JavaScript
2
star
22

rn-animation-example-set

React native animation examples using RN's Animated API.
JavaScript
2
star
23

react-native-baseline-measurements

Java
2
star
24

flutter-versus-react-native-series

A repo containing demos used in a Flutter Versus React Native series.
Java
2
star
25

YouiEngineExtendRnComponents

Sample on how to extend React Native components natively while using You.i Engine One's counterparts
CMake
2
star
26

json_to_firebase

Simple JSON to Firebase Node JS script to upload a local JSON file to a specific Firebase collection.
JavaScript
1
star
27

lsp-experiments

JavaScript
1
star
28

text-next-ssr

JavaScript
1
star
29

comments-with-polygon

Cloned from https://github.com/pointer-gg/comments-with-polygon
TypeScript
1
star
30

BasicRNBoilerplate

React Native boilerplate with Eslint, lint-staged and flow configured.
Objective-C
1
star
31

react-native-weekly

React Native Weekly Blog
TypeScript
1
star
32

react-dnd-chess

React drag and drop chess tutorial
JavaScript
1
star
33

llms-playground

Jupyter Notebook
1
star
34

rnshared-android-repro

JavaScript
1
star
35

customHtmlVideoPlayer

Customized html video player with js and css
CSS
1
star
36

roku_procinfo_profiler

NodeJS app to plot memory values received from the ECP procinfo provided by Roku devices.
JavaScript
1
star
37

ReactTimer

A react timer app with a timer and countdown feature, made with react
CSS
1
star
38

rn-cli-test

Quick repro for gradlew sync fail.
Objective-C
1
star
39

hooks-and-redux-patterns

Example App which goes over patterns when using hooks with redux.
TypeScript
1
star
40

docker-react

React with docker example
JavaScript
1
star
41

shell-scripts

Shell scripts utilities for day to day work
Shell
1
star
42

Weather-App

Weather App using ajax, js , html and css
JavaScript
1
star
43

rnTooltipTester

Testing App for rn-tooltip | Serves as a QA app.
TypeScript
1
star
44

keyboard-listing-smart-contract

A Solidity smart contract app that supports adding keyboards, getting notified for updates, and tipping users. From https://www.pointer.gg/tutorials/solid-solidity/a7ec3eff-fc59-481d-bcb2-1224b3e9c0f7
JavaScript
1
star
45

volleyball-tornament

Web app to handle distribution of players and game results.
TypeScript
1
star
46

temperamentosWebsite

Landing site for Temperamentos App.
HTML
1
star