fix(Tooltip): add default value in measure component by Duell10111 · Pull Request #3550 · react-native-elements/react-native-elements

Motivation

If the tooltip got rendered in an FlatList an Tooltip render error could occur when running in an simulator with hermes.

Invariant Violation: [9217,"RCTView",11,{"position":"absolute","top":"<>","backgroundColor":0,"overflow":"visible"}] is not usable as a native method argument

Setting the default values fixed this.
Also described here already from another user:
#2237 (comment)

Fixes maybe this one #3085

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

How Has This Been Tested?

Tested with locally adapt in the source code on Expo sample app

  • Jest Unit Test
  • Checked with example app

Checklist

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation using yarn docs-build-api
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • Any dependent changes have been merged and published in downstream modules

Additional context