Skip to content

dejakob/react-native-modal-walk-through

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

React Native Modal WalkThrough

A modal to walk through different steps in react native

Installation

Install with yarn or npm

yarn add react-native-modal-walk-through

Import the lib

import ModalWalkThrough from 'react-native-modal-walk-through';

Add scenes

<ModalWalkThrough
  visible={true}
>
  {['scene1', 'scene2'].map(scene => (
    <View>
      <Text>{scene}</Text>
    </View>
  ))}
</ModalWalkThrough>

Preview

preview

Properties

Property Type Description Default value
height Number Height of the walkthrough 40% of screen height
width Number Width of the walkthrough 80% of screen width
onFinish Function When the user went throught the entire walkthrough
onStepChange Function When the user swiped to another step

Methods

goToStep (step: Number)

Go to a particular step in the walkthrough, in case the number is bigger than the last step index, it will close the modal

show

Show the modal

hide

Hide the modal

gitcheese.com

About

React Native Modal WalkThrough

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published