mohebifar / mohebifar/react-native-copilot

walkthroughable break app

Open
#186 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
2.4k
Forks
428
PR merge metrics
No merged PRs in 30d

Description

I am following the example, my screen is a function, not a class, I also have Redux connected
export default copilot ({
overlay: "svg",
animated: true
}) (connect (mapStateToProps, mapDispatchToProps) (Profile));
And I see the props arrive:
Object {
"emit": [Function emit],
"off": [Function off],
"on": [Function on],
}
But when I put walkthroughable in place the app breaks and throws at me:
Element type is invalid: expected a string (for built-in components) or a class / function (for composite components) but got: undefined. You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the reported error with the function component, Redux connection, and walkthroughable usage shown in the issue. Inspect how the walkthroughable component is applied to that connected component; done means the app renders without the invalid-element-type error and the walkthrough remains usable.

Written by the indexing model from the issue text.

Assessment

Tech stack
react-native, redux, typescript
Domain
mobile
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.