()
| 566 | } |
| 567 | |
| 568 | function _getViewAnimatedStyle() { |
| 569 | let viewStyle: ViewStyle = { |
| 570 | // https://github.com/microsoft/TypeScript/issues/11465 |
| 571 | position: 'absolute' as 'absolute', |
| 572 | top: dimValue, |
| 573 | left: 0, |
| 574 | right: 0, |
| 575 | elevation, |
| 576 | zIndex, |
| 577 | }; |
| 578 | let animatedInterpolateConfig = { |
| 579 | inputRange: [0, 1], |
| 580 | outputRange: [0 - height, 0], |
| 581 | }; |
| 582 | if (alertPosition === DropdownAlertPosition.Bottom) { |
| 583 | viewStyle.top = undefined; |
| 584 | viewStyle.bottom = dimValue; |
| 585 | animatedInterpolateConfig.outputRange[0] = |
| 586 | windowDimensions.height - height; |
| 587 | } |
| 588 | return [ |
| 589 | viewStyle, |
| 590 | { |
| 591 | transform: [ |
| 592 | { |
| 593 | translateY: animatedValue.current.interpolate( |
| 594 | animatedInterpolateConfig, |
| 595 | ), |
| 596 | }, |
| 597 | ], |
| 598 | }, |
| 599 | animatedViewStyle, |
| 600 | ]; |
| 601 | } |
| 602 | |
| 603 | function _renderAlert() { |
| 604 | if (children) { |
no outgoing calls
no test coverage detected
searching dependent graphs…