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

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

Open amit13091992 opened this issue 1 year ago • 4 comments

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 avatar Jan 05 '24 08:01 amit13091992

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

amit13091992 avatar Jan 05 '24 08:01 amit13091992

did you find any solution?

sarmadali25 avatar Mar 28 '24 12:03 sarmadali25

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

copilotTooltip

srikanth716 avatar May 02 '24 17:05 srikanth716

@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

srikanth716 avatar May 20 '24 18:05 srikanth716