Skip to content

When using redux within a Modal, we lose access to the Context that redux uses, causing failures. #5460

@justinmwarner

Description

@justinmwarner

Description

In my example Snack, you can see I'm using a useSelector within a native-base Modal component. This causes a failure.

CodeSandbox/Snack link

https://snack.expo.dev/@justinwarner/nativebase-template

Steps to reproduce

In the Snack, click the button and notice the errors.

NativeBase Version

^3.2.1

Platform

  • Android
  • CRA
  • Expo
  • iOS
  • Next

Other Platform

No response

Additional Information

I think a Portal will help here, which could all be controlled by native-base internally.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions