prscX / react-native-app-tour

React Native: Native App Tour Library
Apache License 2.0
640 stars 119 forks source link

Current Sequence #109

Open xDemon200 opened 4 years ago

xDemon200 commented 4 years ago

How can I get the current sequence to be able to store it and update it as it changes?.

Currently there are these two listeners, but neither covers that need.

registerSequenceStepEvent = () => { if (this.sequenceStepListener) { this.sequenceStepListener.remove(); } this.sequenceStepListener = DeviceEventEmitter.addListener( 'onShowSequenceStepEvent', e => { console.log('onShowSequenceStepEvent', e); }, ); }; registerFinishSequenceEvent = () => { if (this.finishSequenceListener) { this.finishSequenceListener.remove(); } this.finishSequenceListener = DeviceEventEmitter.addListener( 'onFinishSequenceEvent', e => { console.log('onShowSequenceStepEvent', e); }, ); }; `