MCPcopy
hub / github.com/testshallpass/react-native-dropdownalert / _getViewAnimatedStyle

Function _getViewAnimatedStyle

DropdownAlert.tsx:568–601  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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) {

Callers 1

DropdownAlertFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…