Support for Multiple Walkthroughable Elements in a Single `CopilotStep`

オープン
#334 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
35/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
react-native, typescript
領域
mobile

調査の方向性

Issue に記載されている walkthroughable API と CopilotStep の動作から始め、その後、複数の walkthroughable 子要素が現在どのように処理されているかを確認します。1 つの CopilotStep が、walkthroughable ではない Text とともに 2 つの walkthroughable Text 要素を含むことができ、意図したハイライトとステップの動作がテストでカバーされていれば完了です。

索引モデルが issue の本文から書いたものです。

説明

Hi, thank you for creating and maintaining this great library!

I have a use case where I need to include multiple walkthroughable elements inside a single CopilotStep. Specifically, I have a View containing three Text components. I would like to make two of these Text components walkthroughable using const CopilotText = walkthroughable(Text);, while the third Text remains non-walkthroughable.

Here’s a simplified example of what I’m trying to achieve:

import { walkthroughable } from 'react-native-copilot';

const CopilotText = walkthroughable(Text);

<CopilotStep text="Step 1" order={1} name="step1">
  <View>
    <CopilotText>Walkthrough Text 1</CopilotText>
    <Text>Non-Walkthrough Text</Text>
    <CopilotText>Walkthrough Text 2</CopilotText>
  </View>
</CopilotStep>

Currently, it seems that the library does not support multiple walkthroughable elements within the same CopilotStep. Is there a way to achieve this with the current API? Or would this require an enhancement to the library?

If not supported, I believe this feature could be a valuable addition for scenarios where multiple interactive components need to be highlighted within a single logical step.

Looking forward to your response. Thank you for your time and for maintaining this awesome library!

主要言語
TypeScript
スター
2.4k
フォーク
425
PR マージ指標
30日以内にマージされた PR はありません

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

mohebifar/react-native-copilot のほかの issue

mohebifar/react-native-copilot の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。