Skip to content

lhq220/react-native-taptargetview

Repository files navigation

React Native TapTargetView

React Native Bridge for KeepSafe/TapTargetView

Before we dive into on how to use this library. We would like to thank all the contributor of KeepSafe/TapTargetView for providing such a awesome nice, cool library

Video 1

Installation

  • $ npm install react-native-taptargetview --save

  • $ react-native link react-native-taptargetview

API's

  • TapTarget.forView: TapTarget
let tapTarget = TapTarget.forView(Button, {
    title: 'This is a target button 1',
    description: 'We have the best targets, believe me'
})

TapTargetView.ShowFor(tapTarget)
  • TapTargetSequence
    • add(TapTarget)
    • remove(TapTarget)
    • removeAll
    • get(TapTarget)
    • getAll
let tapTargetSequence = new TapTargetSequence()
this.tapTargets.forEach(tapTarget => {
tapTargetSequence.add(tapTarget)
})

TapTargetView.ShowSequence(tapTargetSequence)
  • TapTargetView
    • ShowFor(TapTarget)
    • ShowSequence(TapTargets)

Contribution

Any type of contribution will be very much appreciated

License

Copyright @2017 Pranav Raj Singh Chauhan

The React Native TapTargetView is provided under the MIT License.