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

Make fromRect Optional (and other improvements) #30

Closed
wants to merge 120 commits into from

Conversation

SteffeyDev
Copy link

@SteffeyDev SteffeyDev commented Jun 1, 2017

This is a usability update with three significant changes:

  • When no fromRect prop is passed in, the popover scales from the middle of the screen, allowing for more use cases. This is very useful when the button that launches the popover is in a scrollview and may be in different positions, and thus calculating a rectangle would be difficult.
  • The content view is given a 10px padding from the edges of the screen in all cases. This makes it more visually evident that the popover is floating in front of the screen.
  • The entire view is now in a modal so that the popover always shows on top (This makes PR Added zIndex to make the popover always display in front of everything #27 not needed, which is better because zIndex is currently unreliable on Android).
  • Tapping on the content view itself no longer dismisses the popover, only tapping on the background view does. This allows for the use of a scrollview and other types of views in the popover that was not previously possible.

I have found these improvements make this component usable and useful on my iPad.
Note: I do not have an Android tablet to test on, so this would be necessary before merging.

This keeps the popover view from being flush with the edges.
This simply scales the view from the middle when there is no fromRect
prop to go off of.
This undoes an odd but unnecessary change I made.
@SteffeyDev SteffeyDev changed the title No Need for fromRect Prop (and other improvements) Make fromRect Optional (and other improvements) Jun 1, 2017
SteffeyDev and others added 9 commits June 1, 2017 16:37
I copied the popover file from uk-agilityworks and modified it in the
same way as the other, looking for stability fixes.  Turns out, it was
the native driver causing the flickering, so turned that off.  Now
supports Android without crashing.
SteffeyDev and others added 28 commits November 7, 2018 13:57
This should help clarify a few things that we learned in those issues
Update fromView prop spelling in readme
…show for some reason or doesn't close correctly
added portrait-upside-down to Modal supportedOrientations
chore: add typescript definition
@SteffeyDev SteffeyDev closed this Jun 8, 2019
@SteffeyDev
Copy link
Author

Assumed that this repository is dead, now maintaining my own repository: https://github.com/SteffeyDev/react-native-popover-view

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

Successfully merging this pull request may close these issues.

None yet

6 participants