Copilot works in expo go but not in standalone (testflight)

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

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

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
30/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

Bắt đầu với component Copilot, các hook useEffect của nó và ví dụ CopilotStep, sau đó tái hiện quá trình chuyển tiếp trong Expo Go và một bản build iOS TestFlight bằng react-native-copilot 2.5.1. So sánh hành vi standalone khi màn hình được mở; hoàn tất khi Copilot khởi chạy trong quá trình điều hướng mà màn hình không chuyển sang màu trắng.

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

Mô tả

Current Behavior
Copilot works great when running through expo go. However, I pushed to TestFlight and all of a sudden when navigating to Copilot screen, you see a glimpse of the screen and whole screen goes plain white.

Input Code

How I setup copilot.
`const Copilot = (props) => {
const CopilotText = walkthroughable(Text);
const CopilotImage = walkthroughable(Image);

useEffect(() => {
  props.copilotEvents.on();
  props.start();
}, [])

useEffect(() => {
  props.copilotEvents.on("stop", CopilotDone)
  console.log(navigation)
})

const CopilotDone = (step) => {
  navigation.navigate('CompleteScreen');
}

const navigation = useNavigation(); `

Example of how I setup a Copilot step.

`

              <CopilotStep
                      text="This is an example of a workout program you can make"
                      order={1}
                      name="first"
                    >
                  <CopilotText
                    style={[
                      tailwind("font-[800] text-[25px] ml-4 "),
                      { color: "#f4f4f4", },
                    ]}
                  >
                    My Program
                  </CopilotText> 
                </CopilotStep>
          </View>` 

Expected behavior/code
I expect Copilot to start as soon as a user gets navigated to this screen.

Environment

  • IOS TestFlight
  • Expo Go with IPhone 12 simulator
  • "react-native-copilot": "^2.5.1",
  • "react-native": "0.64.3",

Additional context/Screenshots
IMG_36E99B3CF107-1

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.