( childrenY: number, childrenHeight: number, tooltipHeight: number )
| 52 | * The tooltip will be placed at the top of the wrapped element. |
| 53 | */ |
| 54 | const overflowBottom = ( |
| 55 | childrenY: number, |
| 56 | childrenHeight: number, |
| 57 | tooltipHeight: number |
| 58 | ): boolean => { |
| 59 | const { height: layoutHeight } = Dimensions.get('window'); |
| 60 | |
| 61 | return childrenY + childrenHeight + tooltipHeight > layoutHeight; |
| 62 | }; |
| 63 | |
| 64 | const getTooltipXPosition = ( |
| 65 | { pageX: childrenX, width: childrenWidth }: ChildrenMeasurement, |
no outgoing calls
no test coverage detected
searching dependent graphs…