(center: number, tooltipWidth: number)
| 42 | * The tooltip width will grow from right to left relative to the wrapped element. |
| 43 | */ |
| 44 | const overflowRight = (center: number, tooltipWidth: number): boolean => { |
| 45 | const { width: layoutWidth } = Dimensions.get('window'); |
| 46 | |
| 47 | return center + tooltipWidth > layoutWidth; |
| 48 | }; |
| 49 | |
| 50 | /** |
| 51 | * Return true when the children y-coordinate + its height + tooltip height is greater than the layout height. |
no outgoing calls
no test coverage detected
searching dependent graphs…