SteffeyDev / react-native-popover-view

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

SVG icon as children breaks #167

Closed araujobarret closed 1 year ago

araujobarret commented 1 year ago

Describe the bug Using SVG elements as from prop break the Popover with the message ERROR Warning: Function components cannot be given refs. Attempts to access this ref will fail. Did you mean to use React.forwardRef()?

Tested with the icons like ImageIcon and the base Icon element all based in react-native-svg and styled-components.

Device/Setup Info:

Debug Output LOG [2023-08-04T13:52:21.067Z] calculateRectFromRef - waiting for ref

araujobarret commented 1 year ago

If I wrap in a View it works from={<View><Icon /></View>}.