react-native-copilot icon indicating copy to clipboard operation
react-native-copilot copied to clipboard

Walkthrough doesn't appear immediately after start()

Open MugeshM opened this issue 6 years ago • 1 comments

Current Behavior Whenever start() has been called in Mount there is atleast 2 seconds delay for Walkthrough to appear. In this two seconds if we navigate to another screen, Walkthrough appear on the next screen. Even If I add a delay for start() as mentioned in https://github.com/mohebifar/react-native-copilot/issues/18#issuecomment-364469685 same issue exists.

Input Code

componentDidMount() {
      this.props.start();
}
export default copilot({
  animated: true,
  overlay: 'svg',
  animationDuration: 100,
  tooltipComponent: Tooltip,
  stepNumberComponent: StepNumberComponent,
  androidStatusBarVisible: true,
  backdropColor: "rgba(000, 000, 000, 0.9)",
})(App);

Expected behavior/code Walkthrough should appear immediately or it should not appear when we navigate to some other screen. If screen A and screen B has walkthrough, And if I navigate from screen A to screen B in a second then screen B will have two walkthroughs.

Environment

  • Device: OnePlus 6
  • OS: Android 9
  • react-native-copilot: 2.4.4
  • react-native: 0.56.0
  • react-native-svg: 6.3.1

MugeshM avatar May 31 '19 10:05 MugeshM

Hey, any workaround / solution for this?

loicboyeldieu avatar Aug 29 '20 18:08 loicboyeldieu