File tree Expand file tree Collapse file tree 1 file changed +6
-7
lines changed
packages/react-native-sortables/src/components/shared Expand file tree Collapse file tree 1 file changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -109,16 +109,15 @@ export default function SortableContainer({
109
109
} ) ;
110
110
111
111
const animatedMeasurementsContainerStyle = useAnimatedStyle ( ( ) => {
112
- if ( ! usesAbsoluteLayout . value ) {
112
+ const ctrl = controlledContainerDimensions . value ;
113
+ const height = ctrl . height ? containerHeight . value : undefined ;
114
+ const width = ctrl . width ? containerWidth . value : undefined ;
115
+
116
+ if ( ! height && ! width ) {
113
117
return EMPTY_OBJECT ;
114
118
}
115
119
116
- const ctrl = controlledContainerDimensions . value ;
117
-
118
- return {
119
- height : ctrl . height ? containerHeight . value : undefined ,
120
- width : ctrl . width ? containerWidth . value : undefined
121
- } ;
120
+ return { height, width } ;
122
121
} ) ;
123
122
124
123
return (
You can’t perform that action at this time.
0 commit comments