mohebifar / mohebifar/react-native-copilot
walkthroughable break app
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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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