Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Popover keeps shaking #256

Open
Jananijann opened this issue Oct 20, 2022 · 3 comments
Open

Popover keeps shaking #256

Jananijann opened this issue Oct 20, 2022 · 3 comments

Comments

@Jananijann
Copy link

Jananijann commented Oct 20, 2022

The popover from react-native-popup-menu keeps shaking. We followed the examples from documentation. We are using "react-native-popup-menu": "^0.15.12", Can anyone suggest a solution for this?

@saqibdoozielabs
Copy link

saqibdoozielabs commented Oct 24, 2022

@Jananijann
This issue is produced when renderer={renderers.Popover} and rendererProps={{ placement: "left" }}, if set placement to top or bottom then working fine.

@TikhomirovSergei
Copy link

TikhomirovSergei commented Dec 7, 2022

The popover from react-native-popup-menu keeps shaking. We followed the examples from documentation. We are using "react-native-popup-menu": "^0.15.12", Can anyone suggest a solution for this?

adding Math.trunc to line https://github.com/instea/react-native-popup-menu/blob/master/src/renderers/Popover.js#L139 can help.

Example: top: Math.trunc(centered.position)

@MackenzyGreen
Copy link

The popover from react-native-popup-menu keeps shaking. We followed the examples from documentation. We are using "react-native-popup-menu": "^0.15.12", Can anyone suggest a solution for this?

This can also be fixed by passing in an actual height prop inside of rendererProps.

Example: renderer={renderers.Popover} rendererProps={{ placement: "left", height: 65 }}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants