mohebifar/react-native-copilot

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

srikxr opened this issue · 1 comments

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

Sorry for the delay, @srikxr. Have you resolved the issue? You can try the latest version v3. It should be more stable.