1.0.2 • Published 3 years ago

@wniemiec-component-reactnative/full-tooltip v1.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

npm.io

❇ Introduction

React Native component that displays a full-width tooltip, being possible to be personalized.

🖼 Gallery

❓ How to use

  1. Install the component
$ npm install --save @wniemiec-component-reactnative/full-tooltip
  1. Import the component
import FullTooltip from '@wniemiec-component-reactnative/full-tooltip';
  1. Use it
[...]

import React, { useState } from 'react';
import { View } from 'react-native;

[...]

const image = { uri: "https://reactjs.org/logo-og.png" };

[...]

<SafeAreaView style={{ display: 'flex', flex: 1, justifyContent: 'center', alignItems: 'center' }}>
  <ImageBackground source={image} resizeMode="cover" style={{flex: 1, width: '100%',justifyContent: "center"}}>
  
  <FullTooltip style={{marginTop: 310}}>
	<Text style={{color: 'white'}}>Some text</Text>
  </FullTooltip>
  
  </ImageBackground>
</SafeAreaView>

[...]

📖 Documentation

PropertyTypeDescriptionDefault
displaybooleanTooltip contenttrue
styleboolCustom stylenull
bgColorstringBackground color"rgba(0, 0, 0, 0.7)"

🚩 Changelog

Details about each version are documented in the releases section.

🤝 Contribute!

See the documentation on how you can contribute to the project here.

📁 Files

/

NameTypeDescription
docsDirectoryDocumentation files
srcDirectorySource files