SteffeyDev / react-native-popover-view

A well-tested, adaptable, lightweight <Popover> component for react-native
MIT License
613 stars 92 forks source link

Prevent errors being thrown when ref is not set #164

Closed evelant closed 1 year ago

evelant commented 1 year ago

If ref.current is not set then react-native-popover-view throws an error. This results in a lot of noise in error tracking such as Sentry or Bugsnag.

This commit prevents the spurious errors from being thrown.

evelant commented 1 year ago

Oops, I need to fix this, it can cause a hang in some cases