Skip to content

Commit

Permalink
Remove usage of passthroughAnimatedPropExplicitValues in ScrollViewSt…
Browse files Browse the repository at this point in the history
…ickyHeader (#37867)

Summary:
Pull Request resolved: #37867

No longer needed with D46574511.

Changelog:
[Internal] - Remove usage of passthroughAnimatedPropExplicitValues in ScrollViewStickyHeader

Reviewed By: rshest

Differential Revision: D46703731

fbshipit-source-id: 8c0f767083aa5f3791541f5ec05b5b1b625ab61f
  • Loading branch information
genkikondo authored and facebook-github-bot committed Jun 15, 2023
1 parent 0f688dc commit 8c9e375
Showing 1 changed file with 1 addition and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -262,17 +262,7 @@ const ScrollViewStickyHeaderWithForwardedRef: React.AbstractComponent<

const child = React.Children.only<$FlowFixMe>(props.children);

// TODO T68319535: remove this if NativeAnimated is rewritten for Fabric
const passthroughAnimatedPropExplicitValues =
isFabric && translateY != null
? {
style: {transform: [{translateY: translateY}]},
}
: null;

return (
/* $FlowFixMe[prop-missing] passthroughAnimatedPropExplicitValues isn't properly
included in the Animated.View flow type. */
<Animated.View
collapsable={false}
nativeID={props.nativeID}
Expand All @@ -282,10 +272,7 @@ const ScrollViewStickyHeaderWithForwardedRef: React.AbstractComponent<
child.props.style,
styles.header,
{transform: [{translateY: animatedTranslateY}]},
]}
passthroughAnimatedPropExplicitValues={
passthroughAnimatedPropExplicitValues
}>
]}>
{React.cloneElement(child, {
style: styles.fill, // We transfer the child style to the wrapper.
onLayout: undefined, // we call this manually through our this._onLayout
Expand Down

0 comments on commit 8c9e375

Please sign in to comment.