Skip to content

Modal not displaying when LineChart is present #6

@rosalinddeibert

Description

@rosalinddeibert

I'm experiencing an issue with LineChart when used on the same screen as React Native's Modal component. When both components are present on the same screen, the modal does not show (seems like it is hidden or off-screen), despite the onShow callback being triggered and the modal's visibility state being set to true and a back swipe triggering the onRequestClose callback.

Steps to Reproduce:

  1. Import and use the react-native-simple-line-chart to render a line chart.
  2. Place a Modal component on the same screen with a visible={true} state.
  3. The onShow callback is called, but the modal is not visible. Swiping back on the phone causes the onRequestClose modal to be called. It seems like the modal is rendered but not displayed.

Expected Behavior:

The modal should be rendered on top of the LineChart and be visible to the user.

Actual Behavior:

The modal does not appear on the screen even though the onShow callback is triggered. The chart seems to be blocking the modal from rendering properly.

Environment:

react-native-simple-line-chart 0.36.1
React Native 0.76.6
Platform: Android

Has anybody experienced this before and found a fix or know if I might be doing something wrong? Thanks for your help.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions