type error Property 'copilot' is missing in type

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

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

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
25/100
issue の種類
バグ
明瞭さ
説明が足りない
活発さ
停滞
技術スタック
react-native, typescript
領域
mobile

調査の方向性

issue に示されているチュートリアルの例を、react-native-copilot 3.2.0、React Native 0.70.5、および表示されている CopilotText の使用方法で再現します。まず walkthroughable コンポーネントの TypeScript 型エラーを調査します。報告されたプロパティ不足エラーなしで例がコンパイルできれば完了です。

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

説明

bug

Current Behavior
A clear and concise description of the behavior.
hi
I'm start this library,
I had a problem following the tutorial

it is just type error, but i want fix it
what do i need to fix?


const CopilotText = walkthroughable(View);

function CreateMeetingRoomButton() {
  const styles = useStyles();
  const goToCreateMeetingScreen = useGoToCreateMeetingScreen(
    MeetingMode.create,
  );
  const { start } = useCopilot();

  return (
    <View style={styles.buttonContainer}>
      <Button text="시작" onPress={() => start()} />

      <CopilotStep text="this is a hello world example" order={1} name="hello">
        <CopilotText testID="gg">
          <IconButton
            icon={{
              iconName: 'add',
              size: styles.buttonIcon.size,
              color: styles.buttonIcon.color,
            }}
            onPress={goToCreateMeetingScreen}
            style={styles.button}
          />
        </CopilotText>
      </CopilotStep>
    </View>
  );
}

Expected behavior/code
A clear and concise description of what you expected to happen (or code).

Environment

  • Device: android emulator
  • OS: window, vscode
  • react-native-copilot: 3.2.0
  • react-native: 0.70.5
  • react-native-svg:13.4.0

Possible Solution

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

bbbb

主要言語
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 を短くまとめたダイジェスト。