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

Nesting CopilotStep within a CopilotStep results in infinite loop

Open kennym opened this issue 6 years ago • 1 comments

Current Behavior Nest a CopilotStep with in a CopilotStep and it results in an infinite loop.

Input Code

        <CopilotStep name="shareBrightToday" order={1} text="Share your practice.  You can also invite a grownup to learn along with you!">
          <CopilotTouchableOpacity>
            <View>
              [...]
              <CopilotStep name="shareBrightToday" order={2} text="Share your practice.  You can also invite a grownup to learn along with you!">
                 <CopilotTouchableOpacity>
                    [...]
                 </copilottouchableopacity>
              </CopilotStep
            </View>
          </copilottouchableopacity>
        </CopilotStep

Expected behavior/code

No infinite loop

Environment

  • Device: iPhone 8 simulator
  • OS: iOS 12
  • react-native-copilot: 2.4.1
  • react-native: 0.55.4
  • react-native-svg: 6.3.1

Possible Solution

Additional context/Screenshots Add any other context about the problem here. If applicable, add screenshots to help explain.

kennym avatar Feb 08 '19 18:02 kennym

Any updates on this?

Egehanozsoy avatar Feb 20 '23 01:02 Egehanozsoy