Commit ad879ce 1 parent 39443be commit ad879ce Copy full SHA for ad879ce
File tree 1 file changed +0
-12
lines changed
1 file changed +0
-12
lines changed Original file line number Diff line number Diff line change @@ -71,7 +71,6 @@ const Container: FC<ContainerProps> = ({children}) => {
71
71
const heightCollapsed = useRef < number > ( 50 )
72
72
const heightExpanded = useRef < number > ( 50 )
73
73
const heightKnob = useRef < number > ( 50 )
74
- const height = useSharedValue < number > ( 50 )
75
74
const heightOffset = useSharedValue < number > ( 0 )
76
75
const pressed = useSharedValue < boolean > ( false )
77
76
const expanded = useSharedValue < boolean > ( false )
@@ -96,14 +95,6 @@ const Container: FC<ContainerProps> = ({children}) => {
96
95
}
97
96
} )
98
97
99
- const updateHeight = ( ) => {
100
- if ( ! pressed . value ) {
101
- height . value =
102
- ( expanded . value ? heightExpanded . current : heightCollapsed . current ) +
103
- heightKnob . current
104
- }
105
- }
106
-
107
98
return (
108
99
< GestureHandlerRootView >
109
100
< Animated . View style = { [ styles . wrapper , animateHeightStyles ] } >
@@ -112,7 +103,6 @@ const Container: FC<ContainerProps> = ({children}) => {
112
103
style = { styles . containerExpanded }
113
104
onLayout = { ( e ) => {
114
105
heightExpanded . current = e . nativeEvent . layout . height
115
- updateHeight ( )
116
106
} } >
117
107
{ expandedChildren }
118
108
</ SectionContainer >
@@ -122,7 +112,6 @@ const Container: FC<ContainerProps> = ({children}) => {
122
112
style = { animateCollapsedStyles }
123
113
onLayout = { ( e ) => {
124
114
heightCollapsed . current = e . nativeEvent . layout . height
125
- updateHeight ( )
126
115
} } >
127
116
{ collapsedChildren }
128
117
</ SectionContainer >
@@ -137,7 +126,6 @@ const Container: FC<ContainerProps> = ({children}) => {
137
126
heightKnob = { heightKnob }
138
127
onLayout = { ( e ) => {
139
128
heightKnob . current = e . nativeEvent . layout . height
140
- updateHeight ( )
141
129
} }
142
130
pressed = { pressed }
143
131
expanded = { expanded } >
You can’t perform that action at this time.
0 commit comments