A React Native Bridge Around Native App Tour Libraries

React Native: Native App Tour Library.This library is a React Native bridge around native app tour libraries. It allows show/guide beautiful tours:

React Native: Native App Tour Library

This library is a React Native bridge around native app tour libraries. It allows show/guide beautiful tours:

Android: KeepSafe/TapTargetView

iOS: aromajoin/material-showcase-ios

Installation

$ npm install react-native-app-tour --save

$ react-native link react-native-app-tour

  • Android

    • Please add below script in your build.gradle
buildscript {
    repositories {
        jcenter()
        google()
        maven { url "https://jitpack.io" }
        ...
    }
}

allprojects {
    repositories {
        mavenLocal()
        jcenter()
        google()
        maven { url "https://jitpack.io" }
        ...
    }
}

Note

  • Android SDK 27 > is supported

  • iOS

    • Run Command: cd ../node_modules/react-native-app-tour/ios && pod install. If it has error => try pod repo update then pod install
      • Add aromajoin/material-showcase-ios in your app Embedded Binaries & Linked Frameworks and Libraries. Please follow below video in order to achieve the same:
    • Now build your iOS app through Xcode

ISSUES

  • If you encounter File not found in iOS issue while setup, please refer ISSUE - 3 issue which might help you in order to resolve.
  • If you have problems with Android Trying to resolve view with tag which doesn’t exist or can’t resolve tag. Please add props collapasable: false to your View

API’s

  • AppTourView.for: AppTourTarget
let appTourTarget = AppTourView.for(Button, {...native-library-props})

AppTour.ShowFor(appTourTarget)

  • AppTourSequence
    • add(AppTourTarget)
    • remove(AppTourTarget)
    • removeAll
    • get(AppTourTarget)
    • getAll
let appTourSequence = new AppTourSequence()
this.appTourTargets.forEach(appTourTarget => {
appTourSequence.add(appTourTarget)
})

AppTour.ShowSequence(appTourSequence)

  • AppTour
    • ShowFor(AppTourTarget)
    • ShowSequence(AppTourTargets)

Props

  • General(iOS & Android)

  • Android

This is image title

  • iOS

This is image title

Note:

App Tour Target Properties are same as defined by KeepSafe/TapTargetView & aromajoin/material-showcase-ios

Download Details:

Author: prscX

GitHub: https://github.com/prscX/react-native-app-tour

#react-native #programming

A React Native Bridge Around Native App Tour Libraries
41.45 GEEK