@mpxjs/webpack-plugin 2.10.24 → 2.11.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (151) hide show
  1. package/lib/index.js +4 -1
  2. package/lib/platform/style/wx/index.js +417 -120
  3. package/lib/platform/template/wx/component-config/picker.js +0 -6
  4. package/lib/react/style-helper.js +6 -6
  5. package/lib/resolver/AddEnvPlugin.js +1 -1
  6. package/lib/resolver/AddModePlugin.js +1 -1
  7. package/lib/resolver/ExtendComponentsPlugin.js +68 -0
  8. package/lib/runtime/components/extends/section-list.mpx +14 -0
  9. package/lib/runtime/components/react/animationHooks/index.ts +7 -3
  10. package/lib/runtime/components/react/dist/animationHooks/index.d.ts +0 -2
  11. package/lib/runtime/components/react/dist/animationHooks/index.js +6 -1
  12. package/lib/runtime/components/react/dist/event.config.d.ts +2 -6
  13. package/lib/runtime/components/react/dist/event.config.js +28 -24
  14. package/lib/runtime/components/react/dist/getInnerListeners.d.ts +1 -1
  15. package/lib/runtime/components/react/dist/getInnerListeners.js +74 -56
  16. package/lib/runtime/components/react/dist/mpx-button.d.ts +1 -2
  17. package/lib/runtime/components/react/dist/mpx-button.jsx +16 -9
  18. package/lib/runtime/components/react/dist/mpx-camera.d.ts +0 -2
  19. package/lib/runtime/components/react/dist/mpx-camera.jsx +36 -5
  20. package/lib/runtime/components/react/dist/mpx-canvas/index.d.ts +0 -2
  21. package/lib/runtime/components/react/dist/mpx-canvas/index.jsx +1 -3
  22. package/lib/runtime/components/react/dist/mpx-canvas/utils.d.ts +1 -1
  23. package/lib/runtime/components/react/dist/mpx-checkbox-group.d.ts +0 -2
  24. package/lib/runtime/components/react/dist/mpx-checkbox-group.jsx +3 -4
  25. package/lib/runtime/components/react/dist/mpx-checkbox.d.ts +1 -2
  26. package/lib/runtime/components/react/dist/mpx-checkbox.jsx +8 -9
  27. package/lib/runtime/components/react/dist/mpx-form.d.ts +1 -2
  28. package/lib/runtime/components/react/dist/mpx-form.jsx +5 -5
  29. package/lib/runtime/components/react/dist/mpx-icon/index.d.ts +0 -2
  30. package/lib/runtime/components/react/dist/mpx-icon/index.jsx +2 -2
  31. package/lib/runtime/components/react/dist/mpx-image.d.ts +0 -2
  32. package/lib/runtime/components/react/dist/mpx-image.jsx +59 -43
  33. package/lib/runtime/components/react/dist/mpx-inline-text.jsx +13 -4
  34. package/lib/runtime/components/react/dist/mpx-input.d.ts +0 -2
  35. package/lib/runtime/components/react/dist/mpx-input.jsx +16 -8
  36. package/lib/runtime/components/react/dist/mpx-label.d.ts +1 -2
  37. package/lib/runtime/components/react/dist/mpx-label.jsx +5 -6
  38. package/lib/runtime/components/react/dist/mpx-movable-area.d.ts +0 -2
  39. package/lib/runtime/components/react/dist/mpx-movable-area.jsx +3 -3
  40. package/lib/runtime/components/react/dist/mpx-movable-view.d.ts +1 -2
  41. package/lib/runtime/components/react/dist/mpx-movable-view.jsx +6 -6
  42. package/lib/runtime/components/react/dist/mpx-nav.jsx +1 -1
  43. package/lib/runtime/components/react/dist/mpx-picker/index.jsx +72 -23
  44. package/lib/runtime/components/react/dist/mpx-picker/multiSelector.jsx +2 -2
  45. package/lib/runtime/components/react/dist/mpx-picker/type.d.ts +4 -0
  46. package/lib/runtime/components/react/dist/mpx-picker-view/index.d.ts +1 -1
  47. package/lib/runtime/components/react/dist/mpx-picker-view/index.jsx +10 -14
  48. package/lib/runtime/components/react/dist/mpx-picker-view/pickerVIewContext.d.ts +0 -2
  49. package/lib/runtime/components/react/dist/mpx-picker-view/pickerVIewContext.js +0 -5
  50. package/lib/runtime/components/react/dist/mpx-picker-view-column/index.d.ts +1 -1
  51. package/lib/runtime/components/react/dist/mpx-picker-view-column/index.jsx +34 -14
  52. package/lib/runtime/components/react/dist/mpx-picker-view-column/pickerViewColumnItem.d.ts +0 -2
  53. package/lib/runtime/components/react/dist/mpx-picker-view-column/pickerViewColumnItem.jsx +4 -5
  54. package/lib/runtime/components/react/dist/mpx-picker-view-column/pickerViewColumnItemLite.d.ts +0 -2
  55. package/lib/runtime/components/react/dist/mpx-picker-view-column/pickerViewColumnItemLite.jsx +3 -5
  56. package/lib/runtime/components/react/dist/mpx-popup/index.d.ts +5 -4
  57. package/lib/runtime/components/react/dist/mpx-popup/index.jsx +2 -2
  58. package/lib/runtime/components/react/dist/mpx-popup/popupBase.jsx +3 -2
  59. package/lib/runtime/components/react/dist/mpx-progress.d.ts +0 -2
  60. package/lib/runtime/components/react/dist/mpx-progress.jsx +1 -3
  61. package/lib/runtime/components/react/dist/mpx-radio-group.d.ts +0 -2
  62. package/lib/runtime/components/react/dist/mpx-radio-group.jsx +3 -4
  63. package/lib/runtime/components/react/dist/mpx-radio.d.ts +1 -2
  64. package/lib/runtime/components/react/dist/mpx-radio.jsx +8 -9
  65. package/lib/runtime/components/react/dist/mpx-rich-text/index.d.ts +0 -2
  66. package/lib/runtime/components/react/dist/mpx-rich-text/index.jsx +1 -3
  67. package/lib/runtime/components/react/dist/mpx-scroll-view.d.ts +1 -2
  68. package/lib/runtime/components/react/dist/mpx-scroll-view.jsx +6 -6
  69. package/lib/runtime/components/react/dist/mpx-section-list.d.ts +51 -0
  70. package/lib/runtime/components/react/dist/mpx-section-list.jsx +376 -0
  71. package/lib/runtime/components/react/dist/mpx-simple-text.jsx +37 -19
  72. package/lib/runtime/components/react/dist/mpx-simple-view.d.ts +4 -1
  73. package/lib/runtime/components/react/dist/mpx-simple-view.jsx +11 -4
  74. package/lib/runtime/components/react/dist/mpx-slider.d.ts +0 -2
  75. package/lib/runtime/components/react/dist/mpx-slider.jsx +6 -7
  76. package/lib/runtime/components/react/dist/mpx-sticky-header.d.ts +1 -2
  77. package/lib/runtime/components/react/dist/mpx-sticky-header.jsx +5 -5
  78. package/lib/runtime/components/react/dist/mpx-sticky-section.d.ts +1 -2
  79. package/lib/runtime/components/react/dist/mpx-sticky-section.jsx +6 -6
  80. package/lib/runtime/components/react/dist/mpx-swiper-item.d.ts +1 -2
  81. package/lib/runtime/components/react/dist/mpx-swiper-item.jsx +5 -5
  82. package/lib/runtime/components/react/dist/mpx-swiper.d.ts +1 -2
  83. package/lib/runtime/components/react/dist/mpx-swiper.jsx +4 -8
  84. package/lib/runtime/components/react/dist/mpx-switch.d.ts +0 -2
  85. package/lib/runtime/components/react/dist/mpx-switch.jsx +1 -3
  86. package/lib/runtime/components/react/dist/mpx-text.d.ts +0 -2
  87. package/lib/runtime/components/react/dist/mpx-text.jsx +43 -25
  88. package/lib/runtime/components/react/dist/mpx-video.d.ts +0 -2
  89. package/lib/runtime/components/react/dist/mpx-video.jsx +4 -5
  90. package/lib/runtime/components/react/dist/mpx-view.d.ts +2 -2
  91. package/lib/runtime/components/react/dist/mpx-view.jsx +214 -114
  92. package/lib/runtime/components/react/dist/mpx-web-view.d.ts +2 -1
  93. package/lib/runtime/components/react/dist/mpx-web-view.jsx +5 -1
  94. package/lib/runtime/components/react/dist/namedColorSet.d.ts +2 -0
  95. package/lib/runtime/components/react/dist/namedColorSet.js +149 -0
  96. package/lib/runtime/components/react/dist/utils.d.ts +71 -70
  97. package/lib/runtime/components/react/dist/utils.jsx +1295 -456
  98. package/lib/runtime/components/react/event.config.ts +32 -25
  99. package/lib/runtime/components/react/getInnerListeners.ts +84 -60
  100. package/lib/runtime/components/react/mpx-button.tsx +18 -18
  101. package/lib/runtime/components/react/mpx-camera.tsx +40 -8
  102. package/lib/runtime/components/react/mpx-canvas/index.tsx +5 -7
  103. package/lib/runtime/components/react/mpx-canvas/utils.tsx +3 -1
  104. package/lib/runtime/components/react/mpx-checkbox-group.tsx +2 -8
  105. package/lib/runtime/components/react/mpx-checkbox.tsx +9 -13
  106. package/lib/runtime/components/react/mpx-form.tsx +6 -8
  107. package/lib/runtime/components/react/mpx-icon/index.tsx +1 -5
  108. package/lib/runtime/components/react/mpx-image.tsx +66 -58
  109. package/lib/runtime/components/react/mpx-inline-text.tsx +13 -4
  110. package/lib/runtime/components/react/mpx-input.tsx +19 -12
  111. package/lib/runtime/components/react/mpx-label.tsx +6 -10
  112. package/lib/runtime/components/react/mpx-movable-area.tsx +3 -5
  113. package/lib/runtime/components/react/mpx-movable-view.tsx +7 -9
  114. package/lib/runtime/components/react/mpx-nav.tsx +1 -1
  115. package/lib/runtime/components/react/mpx-picker/index.tsx +100 -29
  116. package/lib/runtime/components/react/mpx-picker/multiSelector.tsx +3 -3
  117. package/lib/runtime/components/react/mpx-picker/selector.tsx +1 -1
  118. package/lib/runtime/components/react/mpx-picker/type.ts +4 -0
  119. package/lib/runtime/components/react/mpx-picker-view/index.tsx +17 -24
  120. package/lib/runtime/components/react/mpx-picker-view/pickerVIewContext.ts +0 -9
  121. package/lib/runtime/components/react/mpx-picker-view-column/index.tsx +44 -23
  122. package/lib/runtime/components/react/mpx-picker-view-column/pickerViewColumnItem.tsx +1 -9
  123. package/lib/runtime/components/react/mpx-picker-view-column/pickerViewColumnItemLite.tsx +0 -9
  124. package/lib/runtime/components/react/mpx-popup/index.tsx +7 -3
  125. package/lib/runtime/components/react/mpx-popup/popupBase.tsx +3 -2
  126. package/lib/runtime/components/react/mpx-progress.tsx +0 -6
  127. package/lib/runtime/components/react/mpx-radio-group.tsx +2 -8
  128. package/lib/runtime/components/react/mpx-radio.tsx +9 -13
  129. package/lib/runtime/components/react/mpx-rich-text/index.tsx +0 -6
  130. package/lib/runtime/components/react/mpx-scroll-view.tsx +7 -9
  131. package/lib/runtime/components/react/mpx-section-list.tsx +557 -0
  132. package/lib/runtime/components/react/mpx-simple-text.tsx +36 -25
  133. package/lib/runtime/components/react/mpx-simple-view.tsx +17 -5
  134. package/lib/runtime/components/react/mpx-slider.tsx +15 -13
  135. package/lib/runtime/components/react/mpx-sticky-header.tsx +6 -8
  136. package/lib/runtime/components/react/mpx-sticky-section.tsx +7 -9
  137. package/lib/runtime/components/react/mpx-swiper-item.tsx +6 -7
  138. package/lib/runtime/components/react/mpx-swiper.tsx +5 -11
  139. package/lib/runtime/components/react/mpx-switch.tsx +0 -6
  140. package/lib/runtime/components/react/mpx-text.tsx +45 -36
  141. package/lib/runtime/components/react/mpx-video.tsx +3 -8
  142. package/lib/runtime/components/react/mpx-view.tsx +235 -129
  143. package/lib/runtime/components/react/mpx-web-view.tsx +12 -6
  144. package/lib/runtime/components/react/namedColorSet.ts +150 -0
  145. package/lib/runtime/components/react/types/getInnerListeners.d.ts +21 -1
  146. package/lib/runtime/components/react/types/global.d.ts +1 -0
  147. package/lib/runtime/components/react/utils.tsx +1352 -550
  148. package/lib/runtime/i18n.wxs +15 -9
  149. package/lib/style-compiler/strip-conditional.js +19 -4
  150. package/lib/template-compiler/compiler.js +6 -0
  151. package/package.json +6 -6
@@ -51,8 +51,6 @@ export interface ProgressProps {
51
51
  style?: ViewStyle & Record<string, any>
52
52
  'enable-offset'?: boolean
53
53
  'enable-var'?: boolean
54
- 'external-var-context'?: Record<string, any>
55
- 'parent-font-size'?: number
56
54
  'parent-width'?: number
57
55
  'parent-height'?: number
58
56
  }
@@ -72,8 +70,6 @@ const Progress = forwardRef<
72
70
  duration = 30,
73
71
  style = {},
74
72
  'enable-var': enableVar,
75
- 'external-var-context': externalVarContext,
76
- 'parent-font-size': parentFontSize,
77
73
  'parent-width': parentWidth,
78
74
  'parent-height': parentHeight
79
75
  } = props
@@ -94,8 +90,6 @@ const Progress = forwardRef<
94
90
  hasPositionFixed
95
91
  } = useTransformStyle(style, {
96
92
  enableVar,
97
- externalVarContext,
98
- parentFontSize,
99
93
  parentWidth,
100
94
  parentHeight
101
95
  })
@@ -29,8 +29,6 @@ export interface RadioGroupProps {
29
29
  style?: ViewStyle & Record<string, any>
30
30
  'enable-offset'?: boolean
31
31
  'enable-var'?: boolean
32
- 'external-var-context'?: Record<string, any>
33
- 'parent-font-size'?: number
34
32
  'parent-width'?: number
35
33
  'parent-height'?: number
36
34
  children: ReactNode
@@ -44,8 +42,6 @@ const radioGroup = forwardRef<
44
42
  const {
45
43
  style = {},
46
44
  'enable-var': enableVar,
47
- 'external-var-context': externalVarContext,
48
- 'parent-font-size': parentFontSize,
49
45
  'parent-width': parentWidth,
50
46
  'parent-height': parentHeight
51
47
  } = props
@@ -69,8 +65,6 @@ const radioGroup = forwardRef<
69
65
  flexWrap: 'wrap'
70
66
  }
71
67
 
72
- const styleObj = extendObject({}, defaultStyle, style)
73
-
74
68
  const {
75
69
  hasPositionFixed,
76
70
  hasSelfPercent,
@@ -79,7 +73,7 @@ const radioGroup = forwardRef<
79
73
  varContextRef,
80
74
  setWidth,
81
75
  setHeight
82
- } = useTransformStyle(styleObj, { enableVar, externalVarContext, parentFontSize, parentWidth, parentHeight })
76
+ } = useTransformStyle(style, { enableVar, parentWidth, parentHeight, defaultStyle })
83
77
 
84
78
  const nodeRef = useRef(null)
85
79
  useNodesRef(props, ref, nodeRef, { style: normalStyle })
@@ -168,7 +162,7 @@ const radioGroup = forwardRef<
168
162
  value: contextValue
169
163
  },
170
164
  wrapChildren(
171
- props,
165
+ props.children,
172
166
  {
173
167
  hasVarDec,
174
168
  varContext: varContextRef.current
@@ -10,7 +10,7 @@ import { warn } from '@mpxjs/utils'
10
10
  import { LabelContext, RadioGroupContext } from './context'
11
11
  import useInnerProps, { getCustomEvent } from './getInnerListeners'
12
12
  import useNodesRef, { HandlerRef } from './useNodesRef'
13
- import { splitProps, splitStyle, useLayout, useTransformStyle, wrapChildren, extendObject, useTextPassThroughValue } from './utils'
13
+ import { splitProps, splitStyle, useLayout, useTransformStyle, wrapChildren, extendObject, useTextPassThrough } from './utils'
14
14
  import Icon from './mpx-icon'
15
15
  import Portal from './mpx-portal'
16
16
 
@@ -22,8 +22,7 @@ export interface RadioProps {
22
22
  style?: ViewStyle & Record<string, any>
23
23
  'enable-offset'?: boolean
24
24
  'enable-var'?: boolean
25
- 'external-var-context'?: Record<string, any>
26
- 'parent-font-size'?: number
25
+ 'enable-text-pass-through'?: boolean
27
26
  'parent-width'?: number
28
27
  'parent-height'?: number
29
28
  children: ReactNode
@@ -75,8 +74,7 @@ const Radio = forwardRef<HandlerRef<View, RadioProps>, RadioProps>(
75
74
  color = '#09BB07',
76
75
  style = [],
77
76
  'enable-var': enableVar,
78
- 'external-var-context': externalVarContext,
79
- 'parent-font-size': parentFontSize,
77
+ 'enable-text-pass-through': enableTextPassThrough,
80
78
  'parent-width': parentWidth,
81
79
  'parent-height': parentHeight,
82
80
  bindtap
@@ -90,15 +88,13 @@ const Radio = forwardRef<HandlerRef<View, RadioProps>, RadioProps>(
90
88
 
91
89
  const labelContext = useContext(LabelContext)
92
90
 
93
- const defaultStyle = extendObject(
91
+ const wrapperStyle = extendObject(
94
92
  {},
95
93
  styles.wrapper,
96
94
  isChecked ? styles.wrapperChecked : {},
97
95
  disabled ? styles.wrapperDisabled : {}
98
96
  )
99
97
 
100
- const styleObj = extendObject({}, styles.container, style)
101
-
102
98
  const onChange = (evt: NativeSyntheticEvent<TouchEvent>) => {
103
99
  if (disabled || isChecked) return
104
100
  setIsChecked(!isChecked)
@@ -125,10 +121,10 @@ const Radio = forwardRef<HandlerRef<View, RadioProps>, RadioProps>(
125
121
  varContextRef,
126
122
  setWidth,
127
123
  setHeight
128
- } = useTransformStyle(styleObj, { enableVar, externalVarContext, parentFontSize, parentWidth, parentHeight })
124
+ } = useTransformStyle(style, { enableVar, parentWidth, parentHeight, defaultStyle: styles.container })
129
125
 
130
126
  const { textStyle, backgroundStyle, innerStyle = {} } = splitStyle(normalStyle)
131
- const textPassThrough = useTextPassThroughValue(textStyle, textProps)
127
+ const textPassThrough = useTextPassThrough(textStyle, textProps, { enableTextPassThrough })
132
128
 
133
129
  if (backgroundStyle) {
134
130
  warn('Radio does not support background image-related styles!')
@@ -136,7 +132,7 @@ const Radio = forwardRef<HandlerRef<View, RadioProps>, RadioProps>(
136
132
 
137
133
  const nodeRef = useRef(null)
138
134
  useNodesRef(props, ref, nodeRef, {
139
- style: extendObject({}, defaultStyle, normalStyle),
135
+ style: normalStyle,
140
136
  change: onChange
141
137
  })
142
138
 
@@ -199,7 +195,7 @@ const Radio = forwardRef<HandlerRef<View, RadioProps>, RadioProps>(
199
195
  const finalComponent = createElement(View, innerProps,
200
196
  createElement(
201
197
  View,
202
- { style: defaultStyle },
198
+ { style: wrapperStyle },
203
199
  createElement(Icon, {
204
200
  type: 'success',
205
201
  size: 24,
@@ -208,7 +204,7 @@ const Radio = forwardRef<HandlerRef<View, RadioProps>, RadioProps>(
208
204
  })
209
205
  ),
210
206
  wrapChildren(
211
- props,
207
+ props.children,
212
208
  {
213
209
  hasVarDec,
214
210
  varContext: varContextRef.current,
@@ -23,8 +23,6 @@ interface _RichTextProps extends ViewProps {
23
23
  style?: ViewStyle
24
24
  nodes: string | Array<Node>
25
25
  'enable-var'?: boolean
26
- 'external-var-context'?: Record<string, any>
27
- 'parent-font-size'?: number
28
26
  'parent-width'?: number
29
27
  'parent-height'?: number
30
28
  }
@@ -57,8 +55,6 @@ const _RichText = forwardRef<HandlerRef<View, _RichTextProps>, _RichTextProps>((
57
55
  style = {},
58
56
  nodes,
59
57
  'enable-var': enableVar,
60
- 'external-var-context': externalVarContext,
61
- 'parent-font-size': parentFontSize,
62
58
  'parent-width': parentWidth,
63
59
  'parent-height': parentHeight
64
60
  } = props
@@ -77,8 +73,6 @@ const _RichText = forwardRef<HandlerRef<View, _RichTextProps>, _RichTextProps>((
77
73
  height: webViewHeight
78
74
  }, style), {
79
75
  enableVar,
80
- externalVarContext,
81
- parentFontSize,
82
76
  parentWidth,
83
77
  parentHeight
84
78
  })
@@ -38,7 +38,7 @@ import Animated, { useSharedValue, withTiming, useAnimatedStyle, runOnJS } from
38
38
  import { warn, hasOwn } from '@mpxjs/utils'
39
39
  import useInnerProps, { getCustomEvent } from './getInnerListeners'
40
40
  import useNodesRef, { HandlerRef } from './useNodesRef'
41
- import { splitProps, splitStyle, useTransformStyle, useLayout, wrapChildren, extendObject, flatGesture, GestureHandler, HIDDEN_STYLE, useRunOnJSCallback, useTextPassThroughValue } from './utils'
41
+ import { splitProps, splitStyle, useTransformStyle, useLayout, wrapChildren, extendObject, flatGesture, GestureHandler, hiddenStyle, useRunOnJSCallback, useTextPassThrough } from './utils'
42
42
  import { IntersectionObserverContext, ScrollViewContext } from './context'
43
43
  import Portal from './mpx-portal'
44
44
 
@@ -66,8 +66,7 @@ interface ScrollViewProps {
66
66
  'scroll-into-view'?: string;
67
67
  'enable-trigger-intersection-observer'?: boolean;
68
68
  'enable-var'?: boolean;
69
- 'external-var-context'?: Record<string, any>;
70
- 'parent-font-size'?: number;
69
+ 'enable-text-pass-through'?: boolean;
71
70
  'parent-width'?: number;
72
71
  'parent-height'?: number;
73
72
  'enable-sticky'?: boolean;
@@ -145,8 +144,7 @@ const _ScrollView = forwardRef<HandlerRef<ScrollView & View, ScrollViewProps>, S
145
144
  'scroll-left': scrollLeft = 0,
146
145
  'refresher-triggered': refresherTriggered,
147
146
  'enable-var': enableVar,
148
- 'external-var-context': externalVarContext,
149
- 'parent-font-size': parentFontSize,
147
+ 'enable-text-pass-through': enableTextPassThrough,
150
148
  'parent-width': parentWidth,
151
149
  'parent-height': parentHeight,
152
150
  'simultaneous-handlers': originSimultaneousHandlers,
@@ -200,10 +198,10 @@ const _ScrollView = forwardRef<HandlerRef<ScrollView & View, ScrollViewProps>, S
200
198
  hasPositionFixed,
201
199
  setWidth,
202
200
  setHeight
203
- } = useTransformStyle(style, { enableVar, externalVarContext, parentFontSize, parentWidth, parentHeight })
201
+ } = useTransformStyle(style, { enableVar, parentWidth, parentHeight })
204
202
 
205
203
  const { textStyle, innerStyle = {} } = splitStyle(normalStyle)
206
- const textPassThrough = useTextPassThroughValue(textStyle, textProps)
204
+ const textPassThrough = useTextPassThrough(textStyle, textProps, { enableTextPassThrough })
207
205
 
208
206
  const scrollViewRef = useRef<ScrollView>(null)
209
207
 
@@ -255,7 +253,7 @@ const _ScrollView = forwardRef<HandlerRef<ScrollView & View, ScrollViewProps>, S
255
253
  const hasRefresherLayoutRef = useRef(false)
256
254
 
257
255
  // layout 完成前先隐藏,避免安卓闪烁问题
258
- const refresherLayoutStyle = useMemo(() => { return !hasRefresherLayoutRef.current ? HIDDEN_STYLE : {} }, [hasRefresherLayoutRef.current])
256
+ const refresherLayoutStyle = useMemo(() => { return !hasRefresherLayoutRef.current ? hiddenStyle : {} }, [hasRefresherLayoutRef.current])
259
257
  const lastOffset = useRef(0)
260
258
 
261
259
  if (scrollX && scrollY) {
@@ -880,7 +878,7 @@ const _ScrollView = forwardRef<HandlerRef<ScrollView & View, ScrollViewProps>, S
880
878
  const ScrollViewComponent = enableSticky ? AnimatedScrollView : ScrollView
881
879
 
882
880
  const createScrollViewContent = () => {
883
- const wrappedChildren = wrapChildren(hasRefresher ? extendObject({}, props, { children: otherContent }) : props,
881
+ const wrappedChildren = wrapChildren(hasRefresher ? otherContent : props.children,
884
882
  {
885
883
  hasVarDec,
886
884
  varContext: varContextRef.current,