File tree Expand file tree Collapse file tree 1 file changed +19
-17
lines changed
package/src/components/Message/MessageSimple/utils Expand file tree Collapse file tree 1 file changed +19
-17
lines changed Original file line number Diff line number Diff line change @@ -66,23 +66,25 @@ export const MarkdownReactiveScrollView = ({ children }: { children: ReactNode }
6666 } ) ;
6767
6868 return (
69- < GestureDetector gesture = { panGesture } >
70- < Animated . ScrollView
71- contentContainerStyle = { { flexGrow : 1 } }
72- horizontal
73- nestedScrollEnabled = { true }
74- onContentSizeChange = { ( width ) => {
75- contentWidth . value = width ;
76- } }
77- onLayout = { ( e ) => {
78- visibleContentWidth . value = e . nativeEvent . layout . width ;
79- } }
80- ref = { scrollViewRef }
81- scrollEnabled = { false }
82- >
83- { children }
84- </ Animated . ScrollView >
85- </ GestureDetector >
69+ < View style = { { width : '100%' } } >
70+ < GestureDetector gesture = { panGesture } >
71+ < Animated . ScrollView
72+ contentContainerStyle = { { flexGrow : 1 } }
73+ horizontal
74+ nestedScrollEnabled = { true }
75+ onContentSizeChange = { ( width ) => {
76+ contentWidth . value = width ;
77+ } }
78+ onLayout = { ( e ) => {
79+ visibleContentWidth . value = e . nativeEvent . layout . width ;
80+ } }
81+ ref = { scrollViewRef }
82+ scrollEnabled = { false }
83+ >
84+ { children }
85+ </ Animated . ScrollView >
86+ </ GestureDetector >
87+ </ View >
8688 ) ;
8789} ;
8890
You can’t perform that action at this time.
0 commit comments