Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tooltip view is not being set properly with Parent and Child components. #307

Open
amit13091992 opened this issue Jan 5, 2024 · 4 comments

Comments

@amit13091992
Copy link

amit13091992 commented Jan 5, 2024

As of now, I am trying to use it in the Parent component for orders 1, 2 and later for the rest of the orders I am trying to use it with the child component.

<CopilotStep
          text=""
          order={3}
          name="childhere"
        >
          <WalkthroughableView style={{ flex: 0.4, alignItems: 'center', justifyContent: 'center' }}>
              <TouchableOpacity onPress={onPressChildItem}>
                <Text style={styles.buttonLabel}>{"here"}</Text>
              </TouchableOpacity>
          </WalkthroughableView>
        </CopilotStep>

But here it is not getting fit as per the screenshot.

here is my custom tooltip component view:

<View style={{ height: 150, justifyContent: 'center', alignItems: 'center', width: width / 1.25, alignSelf: 'center' }}>
        {childeren_data}
        </View>

here is my copilotProvider:

<CopilotProvider
            overlay="svg"
            stepNumberComponent={StepNumberComponent}
            tooltipComponent={InteractiveToolTip}
            backdropColor="rgba(6, 4, 3, 1)"
            tooltipStyle={{ backgroundColor: 'rgba(34, 48, 52, 0.65)', width: width - 10 }}
            arrowColor="rgba(3, 6, 6, 0.9)"
            animated
        >
       {<Navigator />}
</CopilotProvider>

If anyone can help me out on this would be really appreciated. Thanks in Advance.

@amit13091992
Copy link
Author

Simulator Screen Shot - iPhone 11 pro - 2024-01-05 at 13 43 33

@sarmadali25
Copy link

did you find any solution?

@srikanth716
Copy link

srikanth716 commented May 2, 2024

@amit13091992 did you find any solution? I am also facing the same issue

copilotTooltip

@srikanth716
Copy link

@amit13091992 did you find any solution? I am also facing the same issue

copilotTooltip

 <CopilotProvider 
 tooltipStyle={
      position: 'absolute',
      left: 10,
      right: 10,
      maxWidth: Dimensions.get('screen').width,
      } >

this works for me to fix the view

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants