0.0.6 • Published 6 years ago

react-native-help-bubbles v0.0.6

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

react-native-help-bubbles

Inspired by https://github.com/liuzheng644607/react-native-intro

Install

Run npm install react-native-help-bubbles --save

Usage

import HelpBubbles, { helpbubbles } from 'react-native-help-bubbles';

<HelpBubbles group="firstStart" content={'I will help you!'} step={1}/>

.....

componentDidMount() {

    var helpbubbles = helpbubbles({group:'firstStart'});
    helpbubbles.start();

}

Properties

Basic

PropDefaultTypeDescription
showStepNumtrueboolIf true, the number tip will be shown.
stopBtnTitlestopstringProps to translate the Stop button.
nextBtnTitlenextstringProps to translate the Next button.
prevBtnTitleprevstringProps to translate the Prev button.
checkDisableEvent-fncFunction to check if this bubble disabled. (Has the user seen this bubble before? (Need your own implemention.))
willViewEvent-fncFunction will called before the bubble appeared.
didViewEvent-fncFunction will called after the bubble appeared.
cancelEvent-fncFunction will called if the user canceled the bubbles.

Custom basic style & content

PropDefaultTypeDescription
customToolTipStyle-styleTooltip style.
customArrowStyle-styleArrow style.

Warning

This Component does not support your component Wrapped by Redux connect currently;