Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
srikxr opened this issue Nov 11, 2022 · 1 comment
Open

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

srikxr opened this issue Nov 11, 2022 · 1 comment

Comments

@srikxr
Copy link

srikxr commented Nov 11, 2022

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

@mohebifar
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants