Skip to content

Commit ae4d24b

Browse files
committed
fix ts
1 parent 82834dd commit ae4d24b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/webpack-plugin/lib/runtime/components/react/mpx-scroll-view.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ const _ScrollView = forwardRef<HandlerRef<ScrollView & View, ScrollViewProps>, S
209209

210210
const { textStyle, innerStyle = {} } = splitStyle(normalStyle)
211211

212-
const scrollViewRef = useRef<ScrollView>()
212+
const scrollViewRef = useRef<ScrollView>(null)
213213
useNodesRef(props, ref, scrollViewRef, {
214214
style: normalStyle,
215215
scrollOffset: scrollOptions,

0 commit comments

Comments
 (0)