type error Property 'copilot' is missing in type

Đang mở
#277 5 bình luận 3 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
25/100
Loại issue
Lỗi
Độ rõ ràng
Cần làm rõ
Mức độ hoạt động
Đình trệ
Công nghệ
react-native, typescript
Lĩnh vực
mobile

Hướng nghiên cứu

Tái hiện ví dụ trong hướng dẫn được hiển thị trong issue bằng react-native-copilot 3.2.0, React Native 0.70.5 và cách sử dụng CopilotText được hiển thị. Bắt đầu bằng việc kiểm tra lỗi kiểu TypeScript đối với component walkthroughable; hoàn tất khi ví dụ biên dịch mà không có lỗi thiếu thuộc tính đã được báo cáo.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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

Ngôn ngữ chính
TypeScript
Star
2.4k
Fork
425
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của mohebifar/react-native-copilot

Tất cả issue của mohebifar/react-native-copilot

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.