maxs15 / maxs15/react-native-modalbox

Crash with v2.0.0 and react-native 0.61.5

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

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
2.9k
Forks
496
PR merge metrics
No merged PRs in 30d

Description

When I use react-native-modalbox version2.0.0 on an app built with RN 0.61.5, the app crashes with the following error message:

Invariant Violation: Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: object.

Check the render method of `MyComponent`.

MyComponent is the component that encloses <Modal>.

If I change back to 1.7.1, the error goes away. I use several modals throughout the app, they all have the same behaviour.
I have not been able to isolate where exactly the error is happening yet, as the error message is too vague.

Contributor guide

No contributing guide indexed for this repository

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 crash with react-native-modalbox 2.0.0 on React Native 0.61.5 using the reported modal usage, then compare it with version 1.7.1. Trace the component used by and identify why it is treated as an object; done means the same app no longer crashes on 2.0.0.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, react-native
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.