Skip to content

Instantly share code, notes, and snippets.

@klaytonfaria
Created April 26, 2018 22:07
Show Gist options
  • Save klaytonfaria/83a1bc8e138d95ffa6dfeb98c147b8d3 to your computer and use it in GitHub Desktop.
Save klaytonfaria/83a1bc8e138d95ffa6dfeb98c147b8d3 to your computer and use it in GitHub Desktop.
React component orchestrator schema
const orchestrator = {
// slug: String,
// title: String,
// description: String,
// step: Number,
// steps: Number,
items: [Object],
// progress: Number,
// progressType: String,
// startedAt: Date,
// finishedAt: Date,
goToStep: Function,
goToNext: Function,
goToPrev: Function,
// goToStepByScreenSlug: Function,
// saveState: Function,
// clearState: Function,
// restart: Function,
// requiredSteps: Array,
onInit: Function,
onChange: Function,
onCheckPoint: [Function], // [[indiceStep, callback], [indiceStep, callback]]
// onRestart: Function,
onComplete: Function,
onFinish: Function,
// onSave: Function
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment