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

未关闭
#307 4 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
3/5
预计耗时
1-2 天
新手友好度
25/100
Issue 类型
缺陷
描述清晰度
需要澄清
活跃度
停滞
技术栈
react-native, typescript
领域
mobile-dev

调研方向

首先使用 CopilotStep 和 WalkthroughableView 示例复现 Parent 和 Child 组件的 walkthrough,然后检查通过 CopilotProvider 渲染的自定义 InteractiveToolTip。检查 tooltipStyle、固定高度、宽度和子组件内容如何与步骤顺序相互影响,并将结果与报告中的屏幕截图进行比较。当 tooltip 在 Parent 和 Child 步骤中都能正确定位并设置大小时,即表示完成。

由索引模型根据 Issue 内容生成。

描述

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.

主要语言
TypeScript
星标
2.4k
派生
425
PR 合并指标
30 天内没有已合并 PR

环境准备

  • 没有 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

mohebifar/react-native-copilot 的其他 Issue

查看 mohebifar/react-native-copilot 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。