@office-iss/react-native-win32 0.67.0-preview.2 → 0.68.0-preview.2

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 (619) hide show
  1. package/.eslintignore +2 -1
  2. package/.flowconfig +9 -2
  3. package/CHANGELOG.json +387 -17
  4. package/CHANGELOG.md +148 -12
  5. package/IntegrationTests/AccessibilityManagerTest.js +1 -1
  6. package/IntegrationTests/AppEventsTest.js +2 -1
  7. package/IntegrationTests/AsyncStorageTest.js +8 -6
  8. package/IntegrationTests/GlobalEvalWithSourceUrlTest.js +1 -1
  9. package/IntegrationTests/ImageCachePolicyTest.js +1 -1
  10. package/IntegrationTests/ImageSnapshotTest.js +1 -1
  11. package/IntegrationTests/IntegrationTestHarnessTest.js +8 -6
  12. package/IntegrationTests/IntegrationTestsApp.js +3 -9
  13. package/IntegrationTests/LayoutEventsTest.js +1 -1
  14. package/IntegrationTests/LoggingTestModule.js +8 -8
  15. package/IntegrationTests/PromiseTest.js +1 -1
  16. package/IntegrationTests/PropertiesUpdateTest.js +1 -1
  17. package/IntegrationTests/RCTRootViewIntegrationTestApp.js +3 -9
  18. package/IntegrationTests/ReactContentSizeUpdateTest.js +1 -1
  19. package/IntegrationTests/SimpleSnapshotTest.js +1 -1
  20. package/IntegrationTests/SizeFlexibilityUpdateTest.js +1 -1
  21. package/IntegrationTests/SyncMethodTest.js +1 -1
  22. package/IntegrationTests/TimersTest.js +1 -1
  23. package/IntegrationTests/WebSocketTest.js +2 -2
  24. package/IntegrationTests/launchWebSocketServer.command +1 -1
  25. package/IntegrationTests/websocket_integration_test_server.js +1 -1
  26. package/Libraries/ActionSheetIOS/ActionSheetIOS.js +4 -4
  27. package/Libraries/ActionSheetIOS/NativeActionSheetManager.js +1 -1
  28. package/Libraries/Alert/Alert.js +4 -4
  29. package/Libraries/Alert/Alert.win32.js +3 -3
  30. package/Libraries/Alert/NativeAlertManager.js +1 -1
  31. package/Libraries/Alert/RCTAlertManager.android.js +2 -2
  32. package/Libraries/Alert/RCTAlertManager.ios.js +1 -1
  33. package/Libraries/Animated/Animated.js +1 -1
  34. package/Libraries/Animated/AnimatedEvent.js +11 -6
  35. package/Libraries/Animated/AnimatedImplementation.js +116 -85
  36. package/Libraries/Animated/AnimatedMock.js +65 -22
  37. package/Libraries/{Components/Touchable/__mocks__/ensureComponentIsNative.js → Animated/AnimatedPlatformConfig.js} +3 -2
  38. package/Libraries/Animated/AnimatedWeb.js +1 -1
  39. package/Libraries/Animated/Easing.js +38 -40
  40. package/Libraries/Animated/NativeAnimatedHelper.js +24 -21
  41. package/Libraries/Animated/NativeAnimatedModule.js +1 -1
  42. package/Libraries/Animated/NativeAnimatedTurboModule.js +1 -1
  43. package/Libraries/Animated/SpringConfig.js +11 -11
  44. package/Libraries/Animated/animations/Animation.js +6 -4
  45. package/Libraries/Animated/animations/DecayAnimation.js +6 -1
  46. package/Libraries/Animated/animations/SpringAnimation.js +16 -1
  47. package/Libraries/Animated/animations/TimingAnimation.js +15 -2
  48. package/Libraries/Animated/bezier.js +20 -9
  49. package/Libraries/Animated/components/AnimatedFlatList.js +1 -1
  50. package/Libraries/Animated/components/AnimatedImage.js +1 -1
  51. package/Libraries/Animated/components/AnimatedScrollView.js +1 -1
  52. package/Libraries/Animated/components/AnimatedSectionList.js +1 -1
  53. package/Libraries/Animated/components/AnimatedText.js +1 -1
  54. package/Libraries/Animated/components/AnimatedView.js +1 -1
  55. package/Libraries/Animated/createAnimatedComponent.js +4 -4
  56. package/Libraries/Animated/createAnimatedComponentInjection.js +1 -1
  57. package/Libraries/Animated/createAnimatedComponent_EXPERIMENTAL.js +1 -1
  58. package/Libraries/Animated/nodes/AnimatedAddition.js +6 -5
  59. package/Libraries/Animated/nodes/AnimatedColor.js +266 -0
  60. package/Libraries/Animated/nodes/AnimatedDiffClamp.js +5 -4
  61. package/Libraries/Animated/nodes/AnimatedDivision.js +6 -5
  62. package/Libraries/Animated/nodes/AnimatedInterpolation.js +8 -6
  63. package/Libraries/Animated/nodes/AnimatedModulo.js +5 -4
  64. package/Libraries/Animated/nodes/AnimatedMultiplication.js +6 -5
  65. package/Libraries/Animated/nodes/AnimatedNode.js +31 -18
  66. package/Libraries/Animated/nodes/AnimatedProps.js +12 -4
  67. package/Libraries/Animated/nodes/AnimatedStyle.js +9 -7
  68. package/Libraries/Animated/nodes/AnimatedSubtraction.js +6 -5
  69. package/Libraries/Animated/nodes/AnimatedTracking.js +8 -6
  70. package/Libraries/Animated/nodes/AnimatedTransform.js +6 -4
  71. package/Libraries/Animated/nodes/AnimatedValue.js +21 -12
  72. package/Libraries/Animated/nodes/AnimatedValueXY.js +14 -14
  73. package/Libraries/Animated/nodes/AnimatedWithChildren.js +6 -5
  74. package/Libraries/Animated/useAnimatedProps.js +1 -1
  75. package/Libraries/AppState/AppState.js +9 -8
  76. package/Libraries/AppState/NativeAppState.js +1 -1
  77. package/Libraries/BatchedBridge/BatchedBridge.js +1 -1
  78. package/Libraries/BatchedBridge/MessageQueue.js +7 -9
  79. package/Libraries/BatchedBridge/NativeModules.js +1 -1
  80. package/Libraries/BatchedBridge/__mocks__/MessageQueueTestConfig.js +1 -1
  81. package/Libraries/BatchedBridge/__mocks__/MessageQueueTestModule.js +3 -3
  82. package/Libraries/Blob/Blob.js +1 -1
  83. package/Libraries/Blob/BlobManager.js +1 -1
  84. package/Libraries/Blob/BlobRegistry.js +1 -1
  85. package/Libraries/Blob/BlobTypes.js +1 -1
  86. package/Libraries/Blob/File.js +1 -1
  87. package/Libraries/Blob/FileReader.js +1 -1
  88. package/Libraries/Blob/NativeBlobModule.js +1 -1
  89. package/Libraries/Blob/NativeFileReaderModule.js +1 -1
  90. package/Libraries/Blob/URL.js +26 -21
  91. package/Libraries/Blob/__mocks__/BlobModule.js +1 -1
  92. package/Libraries/Blob/__mocks__/FileReaderModule.js +1 -1
  93. package/Libraries/BugReporting/BugReporting.js +1 -1
  94. package/Libraries/BugReporting/NativeBugReporting.js +1 -1
  95. package/Libraries/BugReporting/dumpReactTree.js +1 -1
  96. package/Libraries/BugReporting/getReactData.js +15 -6
  97. package/Libraries/Components/AccessibilityInfo/AccessibilityInfo.js +89 -29
  98. package/Libraries/Components/AccessibilityInfo/AccessibilityInfo.win32.js +95 -35
  99. package/Libraries/Components/AccessibilityInfo/NativeAccessibilityInfo.js +4 -1
  100. package/Libraries/Components/AccessibilityInfo/NativeAccessibilityManager.js +5 -1
  101. package/Libraries/Components/AccessibilityInfo/legacySendAccessibilityEvent.android.js +1 -1
  102. package/Libraries/Components/AccessibilityInfo/legacySendAccessibilityEvent.ios.js +1 -1
  103. package/Libraries/Components/AccessibilityInfo/legacySendAccessibilityEvent.win32.js +1 -1
  104. package/Libraries/Components/ActivityIndicator/ActivityIndicator.js +1 -1
  105. package/Libraries/Components/ActivityIndicator/ActivityIndicatorViewNativeComponent.js +5 -5
  106. package/Libraries/Components/Button.js +1 -1
  107. package/Libraries/Components/Clipboard/Clipboard.js +1 -1
  108. package/Libraries/Components/Clipboard/NativeClipboard.js +1 -1
  109. package/Libraries/Components/DatePicker/DatePickerIOS.android.js +1 -1
  110. package/Libraries/Components/DatePicker/DatePickerIOS.ios.js +18 -2
  111. package/Libraries/Components/DatePicker/DatePickerIOS.win32.js +1 -1
  112. package/Libraries/Components/DatePicker/RCTDatePickerNativeComponent.js +1 -1
  113. package/Libraries/Components/DatePickerAndroid/NativeDatePickerAndroid.js +1 -1
  114. package/Libraries/Components/DrawerAndroid/AndroidDrawerLayoutNativeComponent.js +3 -3
  115. package/Libraries/Components/DrawerAndroid/DrawerLayoutAndroid.android.js +5 -4
  116. package/Libraries/Components/DrawerAndroid/DrawerLayoutAndroid.ios.js +1 -1
  117. package/Libraries/Components/DrawerAndroid/DrawerLayoutAndroid.js +1 -1
  118. package/Libraries/Components/Keyboard/Keyboard.js +9 -8
  119. package/Libraries/Components/Keyboard/KeyboardAvoidingView.js +11 -6
  120. package/Libraries/Components/Keyboard/NativeKeyboardObserver.js +1 -1
  121. package/Libraries/Components/MaskedView/MaskedViewIOS.android.js +1 -1
  122. package/Libraries/Components/MaskedView/MaskedViewIOS.ios.js +1 -1
  123. package/Libraries/Components/MaskedView/MaskedViewIOS.win32.js +1 -1
  124. package/Libraries/Components/MaskedView/RCTMaskedViewNativeComponent.js +1 -1
  125. package/Libraries/Components/Pressable/Pressable.js +38 -2
  126. package/Libraries/Components/Pressable/Pressable.win32.js +384 -0
  127. package/Libraries/Components/Pressable/useAndroidRippleForView.js +1 -1
  128. package/Libraries/Components/ProgressBarAndroid/ProgressBarAndroid.android.js +6 -5
  129. package/Libraries/Components/ProgressBarAndroid/ProgressBarAndroid.ios.js +1 -1
  130. package/Libraries/Components/ProgressBarAndroid/ProgressBarAndroid.js +1 -1
  131. package/Libraries/Components/ProgressBarAndroid/ProgressBarAndroidNativeComponent.js +1 -1
  132. package/Libraries/Components/ProgressViewIOS/ProgressViewIOS.android.js +1 -1
  133. package/Libraries/Components/ProgressViewIOS/ProgressViewIOS.ios.js +3 -2
  134. package/Libraries/Components/ProgressViewIOS/ProgressViewIOS.win32.js +1 -1
  135. package/Libraries/Components/ProgressViewIOS/RCTProgressViewNativeComponent.js +1 -1
  136. package/Libraries/Components/RefreshControl/AndroidSwipeRefreshLayoutNativeComponent.js +1 -2
  137. package/Libraries/Components/RefreshControl/PullToRefreshViewNativeComponent.js +1 -1
  138. package/Libraries/Components/RefreshControl/RefreshControl.js +3 -8
  139. package/Libraries/Components/RefreshControl/__mocks__/RefreshControlMock.js +3 -4
  140. package/Libraries/Components/SafeAreaView/RCTSafeAreaViewNativeComponent.js +1 -1
  141. package/Libraries/Components/SafeAreaView/SafeAreaView.js +3 -3
  142. package/Libraries/Components/SafeAreaView/SafeAreaView.win32.js +3 -3
  143. package/Libraries/Components/ScrollView/AndroidHorizontalScrollContentViewNativeComponent.js +3 -1
  144. package/Libraries/Components/ScrollView/AndroidHorizontalScrollViewNativeComponent.js +16 -6
  145. package/Libraries/Components/ScrollView/ScrollContentViewNativeComponent.js +4 -6
  146. package/Libraries/Components/ScrollView/ScrollView.js +22 -15
  147. package/Libraries/Components/ScrollView/ScrollViewCommands.js +1 -1
  148. package/Libraries/Components/ScrollView/ScrollViewContext.js +1 -1
  149. package/Libraries/Components/ScrollView/ScrollViewNativeComponent.js +135 -71
  150. package/Libraries/Components/ScrollView/ScrollViewNativeComponentType.js +2 -1
  151. package/Libraries/Components/ScrollView/ScrollViewStickyHeader.js +2 -2
  152. package/Libraries/Components/ScrollView/ScrollViewViewConfig.js +2 -1
  153. package/Libraries/Components/ScrollView/processDecelerationRate.js +1 -1
  154. package/Libraries/Components/SegmentedControlIOS/RCTSegmentedControlNativeComponent.js +1 -1
  155. package/Libraries/Components/SegmentedControlIOS/SegmentedControlIOS.android.js +1 -1
  156. package/Libraries/Components/SegmentedControlIOS/SegmentedControlIOS.ios.js +3 -9
  157. package/Libraries/Components/SegmentedControlIOS/SegmentedControlIOS.js +1 -1
  158. package/Libraries/Components/Slider/Slider.js +1 -1
  159. package/Libraries/Components/Slider/SliderNativeComponent.js +3 -3
  160. package/Libraries/Components/Sound/NativeSoundManager.js +1 -1
  161. package/Libraries/Components/Sound/SoundManager.js +2 -2
  162. package/Libraries/Components/StaticRenderer.js +1 -1
  163. package/Libraries/Components/StatusBar/NativeStatusBarManagerAndroid.js +1 -1
  164. package/Libraries/Components/StatusBar/NativeStatusBarManagerIOS.js +1 -1
  165. package/Libraries/Components/StatusBar/StatusBar.js +1 -1
  166. package/Libraries/Components/Switch/AndroidSwitchNativeComponent.js +1 -1
  167. package/Libraries/Components/Switch/Switch.js +1 -1
  168. package/Libraries/Components/Switch/SwitchNativeComponent.js +1 -1
  169. package/Libraries/Components/TextInput/AndroidTextInputNativeComponent.js +175 -14
  170. package/Libraries/Components/TextInput/InputAccessoryView.js +1 -1
  171. package/Libraries/Components/TextInput/RCTInputAccessoryViewNativeComponent.js +1 -1
  172. package/Libraries/Components/TextInput/RCTMultilineTextInputNativeComponent.js +10 -5
  173. package/Libraries/Components/TextInput/RCTSingelineTextInputNativeComponent.js +6 -5
  174. package/Libraries/Components/TextInput/RCTTextInputViewConfig.js +32 -11
  175. package/Libraries/Components/TextInput/TextInput.js +131 -31
  176. package/Libraries/Components/TextInput/TextInputNativeCommands.js +1 -1
  177. package/Libraries/Components/TextInput/TextInputState.js +1 -1
  178. package/Libraries/Components/TextInput/TextInputState.win32.js +1 -1
  179. package/Libraries/Components/ToastAndroid/NativeToastAndroid.js +1 -1
  180. package/Libraries/Components/ToastAndroid/ToastAndroid.android.js +4 -4
  181. package/Libraries/Components/ToastAndroid/ToastAndroid.ios.js +4 -4
  182. package/Libraries/Components/ToastAndroid/ToastAndroid.win32.js +4 -4
  183. package/Libraries/Components/Touchable/BoundingDimensions.js +3 -3
  184. package/Libraries/Components/Touchable/PooledClass.js +12 -12
  185. package/Libraries/Components/Touchable/Position.js +2 -2
  186. package/Libraries/Components/Touchable/Touchable.js +27 -40
  187. package/Libraries/Components/Touchable/TouchableBounce.js +3 -6
  188. package/Libraries/Components/Touchable/TouchableHighlight.js +3 -6
  189. package/Libraries/Components/Touchable/TouchableNativeFeedback.js +5 -12
  190. package/Libraries/Components/Touchable/TouchableOpacity.js +3 -7
  191. package/Libraries/Components/Touchable/TouchableWithoutFeedback.js +3 -6
  192. package/Libraries/Components/UnimplementedViews/UnimplementedNativeViewNativeComponent.js +1 -1
  193. package/Libraries/Components/UnimplementedViews/UnimplementedView.js +1 -1
  194. package/Libraries/Components/View/ReactNativeStyleAttributes.js +1 -1
  195. package/Libraries/Components/View/ReactNativeViewAttributes.js +1 -1
  196. package/Libraries/Components/View/ReactNativeViewAttributes.win32.js +1 -1
  197. package/Libraries/Components/View/ReactNativeViewViewConfig.js +13 -2
  198. package/Libraries/Components/View/ReactNativeViewViewConfig.win32.js +13 -2
  199. package/Libraries/Components/View/ReactNativeViewViewConfigAndroid.js +1 -1
  200. package/Libraries/Components/View/View.js +1 -1
  201. package/Libraries/Components/View/View.win32.js +60 -4
  202. package/Libraries/Components/View/ViewAccessibility.js +1 -1
  203. package/Libraries/Components/View/ViewNativeComponent.js +4 -5
  204. package/Libraries/Components/View/ViewPropTypes.js +38 -31
  205. package/Libraries/Components/View/ViewPropTypes.win32.js +553 -0
  206. package/Libraries/Core/Devtools/getDevServer.js +1 -1
  207. package/Libraries/Core/Devtools/openFileInEditor.js +1 -1
  208. package/Libraries/Core/Devtools/openURLInBrowser.js +1 -1
  209. package/Libraries/Core/Devtools/parseErrorStack.js +1 -1
  210. package/Libraries/Core/Devtools/parseHermesStack.js +3 -2
  211. package/Libraries/Core/Devtools/symbolicateStackTrace.js +1 -1
  212. package/Libraries/Core/ExceptionsManager.js +3 -3
  213. package/Libraries/Core/ExtendedError.js +1 -1
  214. package/Libraries/Core/InitializeCore.js +1 -3
  215. package/Libraries/Core/NativeExceptionsManager.js +3 -4
  216. package/Libraries/Core/ReactFiberErrorDialog.js +1 -1
  217. package/Libraries/Core/ReactNativeVersion.js +3 -3
  218. package/Libraries/Core/ReactNativeVersionCheck.js +12 -2
  219. package/Libraries/Core/ReactNativeVersionCheck.win32.js +12 -2
  220. package/Libraries/Core/SegmentFetcher/NativeSegmentFetcher.js +1 -1
  221. package/Libraries/Core/Timers/JSTimers.js +35 -42
  222. package/Libraries/Core/Timers/NativeTiming.js +1 -1
  223. package/Libraries/Core/Timers/immediateShim.js +1 -1
  224. package/Libraries/Core/Timers/queueMicrotask.js +1 -1
  225. package/Libraries/Core/__mocks__/ErrorUtils.js +1 -1
  226. package/Libraries/Core/checkNativeVersion.js +1 -1
  227. package/Libraries/Core/polyfillPromise.js +1 -1
  228. package/Libraries/Core/setUpAlert.js +2 -2
  229. package/Libraries/Core/setUpBatchedBridge.js +15 -3
  230. package/Libraries/Core/setUpDeveloperTools.js +2 -2
  231. package/Libraries/Core/setUpErrorHandling.js +2 -2
  232. package/Libraries/Core/setUpGlobals.js +1 -1
  233. package/Libraries/Core/setUpNavigator.js +1 -1
  234. package/Libraries/Core/setUpPerformance.js +2 -2
  235. package/Libraries/Core/setUpReactDevTools.js +1 -1
  236. package/Libraries/Core/setUpReactRefresh.js +1 -1
  237. package/Libraries/Core/setUpRegeneratorRuntime.js +2 -2
  238. package/Libraries/Core/setUpSegmentFetcher.js +5 -5
  239. package/Libraries/Core/setUpSystrace.js +1 -1
  240. package/Libraries/Core/setUpTimers.js +12 -2
  241. package/Libraries/Core/setUpXHR.js +1 -1
  242. package/Libraries/EventEmitter/NativeEventEmitter.js +3 -2
  243. package/Libraries/EventEmitter/RCTDeviceEventEmitter.js +1 -1
  244. package/Libraries/EventEmitter/RCTEventEmitter.js +1 -1
  245. package/Libraries/EventEmitter/RCTNativeAppEventEmitter.js +1 -1
  246. package/Libraries/EventEmitter/__mocks__/NativeEventEmitter.js +3 -2
  247. package/Libraries/HeapCapture/HeapCapture.js +2 -2
  248. package/Libraries/HeapCapture/NativeJSCHeapCapture.js +1 -1
  249. package/Libraries/Image/AssetRegistry.js +1 -1
  250. package/Libraries/Image/AssetSourceResolver.js +3 -5
  251. package/Libraries/Image/AssetUtils.js +1 -1
  252. package/Libraries/Image/Image.android.js +38 -30
  253. package/Libraries/Image/Image.ios.js +17 -20
  254. package/Libraries/Image/Image.win32.js +19 -22
  255. package/Libraries/Image/ImageAnalyticsTagContext.js +3 -4
  256. package/Libraries/Image/ImageBackground.js +11 -2
  257. package/Libraries/Image/ImageInjection.js +1 -1
  258. package/Libraries/Image/ImagePickerIOS.js +7 -7
  259. package/Libraries/Image/ImageProps.js +18 -18
  260. package/Libraries/Image/ImageResizeMode.js +1 -1
  261. package/Libraries/Image/ImageSource.js +1 -1
  262. package/Libraries/Image/ImageViewNativeComponent.js +96 -61
  263. package/Libraries/Image/NativeImageEditor.js +1 -1
  264. package/Libraries/Image/NativeImageLoaderAndroid.js +2 -4
  265. package/Libraries/Image/NativeImageLoaderIOS.js +1 -1
  266. package/Libraries/Image/NativeImageLoaderWin32.js +1 -1
  267. package/Libraries/Image/NativeImagePickerIOS.js +1 -1
  268. package/Libraries/Image/NativeImageStoreAndroid.js +1 -1
  269. package/Libraries/Image/NativeImageStoreIOS.js +1 -1
  270. package/Libraries/Image/RelativeImageStub.js +1 -1
  271. package/Libraries/Image/TextInlineImageNativeComponent.js +14 -74
  272. package/Libraries/Image/nativeImageSource.js +3 -3
  273. package/Libraries/Image/resolveAssetSource.js +1 -1
  274. package/Libraries/Image/resolveAssetSource.win32.js +1 -1
  275. package/Libraries/Inspector/BorderBox.js +1 -1
  276. package/Libraries/Inspector/BoxInspector.js +1 -1
  277. package/Libraries/Inspector/ElementBox.js +1 -1
  278. package/Libraries/Inspector/ElementProperties.js +1 -1
  279. package/Libraries/Inspector/Inspector.js +2 -2
  280. package/Libraries/Inspector/Inspector.win32.js +7 -7
  281. package/Libraries/Inspector/InspectorOverlay.js +1 -1
  282. package/Libraries/Inspector/InspectorOverlay.win32.js +1 -1
  283. package/Libraries/Inspector/InspectorPanel.js +1 -1
  284. package/Libraries/Inspector/NetworkOverlay.js +3 -6
  285. package/Libraries/Inspector/PerformanceOverlay.js +1 -1
  286. package/Libraries/Inspector/StyleInspector.js +1 -1
  287. package/Libraries/Inspector/resolveBoxStyle.js +1 -1
  288. package/Libraries/Interaction/Batchinator.js +1 -1
  289. package/Libraries/Interaction/BridgeSpyStallHandler.js +2 -2
  290. package/Libraries/Interaction/FrameRateLogger.js +3 -3
  291. package/Libraries/Interaction/InteractionManager.js +3 -5
  292. package/Libraries/Interaction/InteractionStallDebugger.js +1 -1
  293. package/Libraries/Interaction/JSEventLoopWatchdog.js +5 -5
  294. package/Libraries/Interaction/NativeFrameRateLogger.js +1 -1
  295. package/Libraries/Interaction/PanResponder.js +4 -5
  296. package/Libraries/Interaction/TaskQueue.js +1 -1
  297. package/Libraries/Interaction/TouchHistoryMath.js +8 -8
  298. package/Libraries/JSInspector/InspectorAgent.js +1 -1
  299. package/Libraries/JSInspector/JSInspector.js +1 -1
  300. package/Libraries/JSInspector/NetworkAgent.js +2 -7
  301. package/Libraries/LayoutAnimation/LayoutAnimation.js +4 -4
  302. package/Libraries/Linking/Linking.js +8 -8
  303. package/Libraries/Linking/NativeIntentAndroid.js +1 -1
  304. package/Libraries/Linking/NativeLinkingManager.js +1 -1
  305. package/Libraries/Lists/CellRenderMask.js +1 -1
  306. package/Libraries/Lists/FillRateHelper.js +5 -4
  307. package/Libraries/Lists/FlatList.js +4 -5
  308. package/Libraries/Lists/SectionList.js +4 -4
  309. package/Libraries/Lists/SectionListModern.js +4 -4
  310. package/Libraries/Lists/ViewabilityHelper.js +5 -11
  311. package/Libraries/Lists/VirtualizeUtils.js +3 -7
  312. package/Libraries/Lists/VirtualizedList.js +23 -33
  313. package/Libraries/Lists/VirtualizedListContext.js +3 -4
  314. package/Libraries/Lists/VirtualizedSectionList.js +54 -63
  315. package/Libraries/Lists/__flowtests__/FlatList-flowtest.js +1 -1
  316. package/Libraries/Lists/__flowtests__/SectionList-flowtest.js +1 -1
  317. package/Libraries/Lists/__tests__/CellRenderMask-test.js +1 -1
  318. package/Libraries/Lists/__tests__/{FillRateHelper-test.js → FillRateHelper-test.windows.js} +8 -8
  319. package/Libraries/Lists/__tests__/{FlatList-test.js → FlatList-test.windows.js} +3 -3
  320. package/Libraries/Lists/__tests__/{SectionList-test.js → SectionList-test.windows.js} +15 -15
  321. package/Libraries/Lists/__tests__/ViewabilityHelper-test.js +15 -15
  322. package/Libraries/Lists/__tests__/{VirtualizeUtils-test.js → VirtualizeUtils-test.windows.js} +19 -22
  323. package/Libraries/Lists/__tests__/{VirtualizedList-test.js → VirtualizedList-test.windows.js} +32 -32
  324. package/Libraries/Lists/__tests__/{VirtualizedSectionList-test.js → VirtualizedSectionList-test.windows.js} +15 -15
  325. package/Libraries/LogBox/Data/LogBoxData.js +2 -2
  326. package/Libraries/LogBox/Data/LogBoxLog.js +1 -1
  327. package/Libraries/LogBox/Data/LogBoxSymbolication.js +1 -1
  328. package/Libraries/LogBox/Data/parseLogBoxLog.js +13 -24
  329. package/Libraries/LogBox/LogBox.js +4 -4
  330. package/Libraries/LogBox/LogBoxInspectorContainer.js +1 -1
  331. package/Libraries/LogBox/LogBoxNotificationContainer.js +1 -1
  332. package/Libraries/LogBox/UI/AnsiHighlight.js +10 -5
  333. package/Libraries/LogBox/UI/LogBoxButton.js +1 -1
  334. package/Libraries/LogBox/UI/LogBoxInspector.js +4 -2
  335. package/Libraries/LogBox/UI/LogBoxInspectorCodeFrame.js +1 -1
  336. package/Libraries/LogBox/UI/LogBoxInspectorFooter.js +1 -1
  337. package/Libraries/LogBox/UI/LogBoxInspectorHeader.js +1 -1
  338. package/Libraries/LogBox/UI/LogBoxInspectorHeader.win32.js +1 -1
  339. package/Libraries/LogBox/UI/LogBoxInspectorMessageHeader.js +1 -1
  340. package/Libraries/LogBox/UI/LogBoxInspectorReactFrames.js +2 -2
  341. package/Libraries/LogBox/UI/LogBoxInspectorSection.js +1 -1
  342. package/Libraries/LogBox/UI/LogBoxInspectorSourceMapStatus.js +1 -2
  343. package/Libraries/LogBox/UI/LogBoxInspectorStackFrame.js +2 -2
  344. package/Libraries/LogBox/UI/LogBoxInspectorStackFrame.win32.js +2 -2
  345. package/Libraries/LogBox/UI/LogBoxInspectorStackFrames.js +4 -2
  346. package/Libraries/LogBox/UI/LogBoxMessage.js +7 -3
  347. package/Libraries/LogBox/UI/LogBoxNotification.js +7 -4
  348. package/Libraries/LogBox/UI/LogBoxStyle.js +1 -1
  349. package/Libraries/LogBox/UI/LogBoxStyle.win32.js +1 -1
  350. package/Libraries/Modal/Modal.js +15 -14
  351. package/Libraries/Modal/ModalInjection.js +1 -1
  352. package/Libraries/Modal/NativeModalManager.js +1 -1
  353. package/Libraries/Modal/RCTModalHostViewNativeComponent.js +12 -12
  354. package/Libraries/NativeComponent/NativeComponentRegistry.js +30 -33
  355. package/Libraries/NativeComponent/NativeComponentRegistryUnstable.js +27 -0
  356. package/Libraries/NativeComponent/StaticViewConfigValidator.js +198 -0
  357. package/Libraries/NativeComponent/ViewConfig.js +1 -1
  358. package/Libraries/NativeModules/specs/NativeAnimationsDebugModule.js +1 -1
  359. package/Libraries/NativeModules/specs/NativeDevMenu.js +1 -1
  360. package/Libraries/NativeModules/specs/NativeDevSettings.js +1 -1
  361. package/Libraries/NativeModules/specs/NativeDeviceEventManager.js +1 -1
  362. package/Libraries/NativeModules/specs/NativeDialogManagerAndroid.js +1 -1
  363. package/Libraries/NativeModules/specs/NativeLogBox.js +1 -1
  364. package/Libraries/NativeModules/specs/NativeRedBox.js +1 -1
  365. package/Libraries/NativeModules/specs/NativeSourceCode.js +1 -1
  366. package/Libraries/Network/FormData.js +1 -1
  367. package/Libraries/Network/NativeNetworkingAndroid.js +1 -1
  368. package/Libraries/Network/NativeNetworkingIOS.js +1 -1
  369. package/Libraries/Network/RCTNetworking.android.js +1 -1
  370. package/Libraries/Network/RCTNetworking.ios.js +1 -1
  371. package/Libraries/Network/RCTNetworking.win32.js +2 -2
  372. package/Libraries/Network/XHRInterceptor.js +6 -7
  373. package/Libraries/Network/XMLHttpRequest.js +44 -8
  374. package/Libraries/Network/convertRequestBody.js +1 -1
  375. package/Libraries/Network/fetch.js +1 -1
  376. package/Libraries/NewAppScreen/components/Colors.js +1 -1
  377. package/Libraries/NewAppScreen/components/DebugInstructions.js +1 -1
  378. package/Libraries/NewAppScreen/components/Header.js +1 -1
  379. package/Libraries/NewAppScreen/components/HermesBadge.js +1 -1
  380. package/Libraries/NewAppScreen/components/LearnMoreLinks.js +1 -1
  381. package/Libraries/NewAppScreen/components/ReloadInstructions.js +1 -1
  382. package/Libraries/NewAppScreen/index.js +1 -1
  383. package/Libraries/Performance/NativeJSCSamplingProfiler.js +1 -1
  384. package/Libraries/Performance/PureComponentDebug.js +1 -1
  385. package/Libraries/Performance/QuickPerformanceLogger.js +18 -1
  386. package/Libraries/Performance/SamplingProfiler.js +4 -4
  387. package/Libraries/Performance/Systrace.js +9 -2
  388. package/Libraries/PermissionsAndroid/NativePermissionsAndroid.js +7 -2
  389. package/Libraries/PermissionsAndroid/PermissionsAndroid.js +20 -9
  390. package/Libraries/Pressability/HoverState.js +1 -1
  391. package/Libraries/Pressability/HoverState.win32.js +60 -0
  392. package/Libraries/Pressability/Pressability.js +3 -3
  393. package/Libraries/Pressability/Pressability.win32.js +962 -0
  394. package/Libraries/Pressability/PressabilityDebug.js +15 -12
  395. package/Libraries/Pressability/PressabilityPerformanceEventEmitter.js +5 -3
  396. package/Libraries/Pressability/PressabilityTypes.js +1 -1
  397. package/Libraries/Pressability/usePressability.js +1 -1
  398. package/Libraries/Promise.js +1 -1
  399. package/Libraries/PushNotificationIOS/NativePushNotificationManagerIOS.js +1 -1
  400. package/Libraries/PushNotificationIOS/PushNotificationIOS.js +33 -32
  401. package/Libraries/ReactNative/AppContainer.js +3 -3
  402. package/Libraries/ReactNative/AppRegistry.js +15 -13
  403. package/Libraries/ReactNative/DisplayMode.js +1 -1
  404. package/Libraries/ReactNative/DummyUIManager.js +13 -6
  405. package/Libraries/ReactNative/FabricUIManager.js +1 -1
  406. package/Libraries/ReactNative/HeadlessJsTaskError.js +1 -1
  407. package/Libraries/ReactNative/I18nManager.js +3 -6
  408. package/Libraries/ReactNative/NativeHeadlessJsTaskSupport.js +1 -1
  409. package/Libraries/ReactNative/NativeI18nManager.js +1 -1
  410. package/Libraries/ReactNative/NativeUIManager.js +1 -1
  411. package/Libraries/ReactNative/PaperUIManager.js +3 -4
  412. package/Libraries/ReactNative/PaperUIManager.win32.js +8 -9
  413. package/Libraries/ReactNative/ReactFabricInternals.js +1 -1
  414. package/Libraries/ReactNative/RootTag.js +3 -4
  415. package/Libraries/ReactNative/UIManager.js +5 -7
  416. package/Libraries/ReactNative/UIManagerInjection.js +4 -2
  417. package/Libraries/ReactNative/UIManagerProperties.js +1 -1
  418. package/Libraries/ReactNative/getCachedComponentWithDebugName.js +4 -2
  419. package/Libraries/ReactNative/getNativeComponentAttributes.js +21 -9
  420. package/Libraries/ReactNative/renderApplication.js +1 -1
  421. package/Libraries/ReactNative/requireNativeComponent.js +1 -1
  422. package/Libraries/ReactPrivate/ReactNativePrivateInitializeCore.js +1 -1
  423. package/Libraries/ReactPrivate/ReactNativePrivateInterface.js +1 -1
  424. package/Libraries/Reliability/UserFlow.js +1 -1
  425. package/Libraries/Renderer/implementations/ReactFabric-dev.fb.js +1134 -426
  426. package/Libraries/Renderer/implementations/ReactFabric-dev.js +1 -1
  427. package/Libraries/Renderer/implementations/ReactFabric-prod.fb.js +265 -236
  428. package/Libraries/Renderer/implementations/ReactFabric-prod.js +1 -1
  429. package/Libraries/Renderer/implementations/ReactFabric-profiling.fb.js +538 -302
  430. package/Libraries/Renderer/implementations/ReactFabric-profiling.js +1 -1
  431. package/Libraries/Renderer/implementations/ReactNativeRenderer-dev.fb.js +1084 -463
  432. package/Libraries/Renderer/implementations/ReactNativeRenderer-dev.js +1 -1
  433. package/Libraries/Renderer/implementations/ReactNativeRenderer-prod.fb.js +251 -224
  434. package/Libraries/Renderer/implementations/ReactNativeRenderer-prod.js +1 -1
  435. package/Libraries/Renderer/implementations/ReactNativeRenderer-profiling.fb.js +519 -281
  436. package/Libraries/Renderer/implementations/ReactNativeRenderer-profiling.js +1 -1
  437. package/Libraries/Renderer/shims/ReactFabric.js +2 -2
  438. package/Libraries/Renderer/shims/ReactFeatureFlags.js +2 -2
  439. package/Libraries/Renderer/shims/ReactNative.js +2 -2
  440. package/Libraries/Renderer/shims/ReactNativeTypes.js +2 -2
  441. package/Libraries/Renderer/shims/ReactNativeViewConfigRegistry.js +2 -4
  442. package/Libraries/Renderer/shims/createReactNativeComponentClass.js +2 -2
  443. package/Libraries/Settings/NativeSettingsManager.js +1 -1
  444. package/Libraries/Settings/Settings.android.js +1 -1
  445. package/Libraries/Settings/Settings.ios.js +1 -1
  446. package/Libraries/Share/NativeShareModule.js +1 -1
  447. package/Libraries/Share/Share.js +1 -1
  448. package/Libraries/Storage/AsyncStorage.js +34 -35
  449. package/Libraries/Storage/NativeAsyncLocalStorage.js +1 -1
  450. package/Libraries/Storage/NativeAsyncSQLiteDBStorage.js +1 -1
  451. package/Libraries/StyleSheet/EdgeInsetsPropType.js +1 -1
  452. package/Libraries/StyleSheet/PlatformColorValueTypes.android.js +1 -1
  453. package/Libraries/StyleSheet/PlatformColorValueTypes.ios.js +1 -1
  454. package/Libraries/StyleSheet/PlatformColorValueTypesIOS.ios.js +1 -1
  455. package/Libraries/StyleSheet/PlatformColorValueTypesIOS.js +1 -1
  456. package/Libraries/StyleSheet/PointPropType.js +1 -1
  457. package/Libraries/StyleSheet/Rect.js +1 -1
  458. package/Libraries/StyleSheet/StyleSheet.js +3 -2
  459. package/Libraries/StyleSheet/StyleSheet.win32.js +3 -2
  460. package/Libraries/StyleSheet/StyleSheetTypes.js +2 -2
  461. package/Libraries/StyleSheet/__flowtests__/StyleSheet-flowtest.js +1 -1
  462. package/Libraries/StyleSheet/flattenStyle.js +1 -1
  463. package/Libraries/StyleSheet/normalizeColor.js +1 -1
  464. package/Libraries/StyleSheet/processColor.js +3 -3
  465. package/Libraries/StyleSheet/processColorArray.js +1 -1
  466. package/Libraries/StyleSheet/processTransform.js +21 -2
  467. package/Libraries/StyleSheet/setNormalizedColorAlpha.js +1 -1
  468. package/Libraries/StyleSheet/splitLayoutProps.js +2 -4
  469. package/Libraries/Text/Text.js +11 -12
  470. package/Libraries/Text/TextAncestor.js +1 -1
  471. package/Libraries/Text/TextNativeComponent.js +10 -8
  472. package/Libraries/Text/TextNativeComponent.win32.js +9 -7
  473. package/Libraries/Text/TextProps.js +19 -19
  474. package/Libraries/TurboModule/RCTExport.js +1 -1
  475. package/Libraries/TurboModule/TurboModuleRegistry.js +1 -1
  476. package/Libraries/TurboModule/samples/NativeSampleTurboModule.js +1 -1
  477. package/Libraries/Types/CodegenTypes.js +1 -1
  478. package/Libraries/Types/CoreEventTypes.js +1 -1
  479. package/Libraries/Types/CoreEventTypes.win32.js +191 -0
  480. package/Libraries/Types/RootTagTypes.js +1 -1
  481. package/Libraries/UTFSequence.js +1 -1
  482. package/Libraries/Utilities/Appearance.js +7 -6
  483. package/Libraries/Utilities/BackHandler.android.js +5 -5
  484. package/Libraries/Utilities/BackHandler.ios.js +1 -1
  485. package/Libraries/Utilities/BackHandler.win32.js +5 -5
  486. package/Libraries/Utilities/DebugEnvironment.js +1 -1
  487. package/Libraries/Utilities/DevSettings.js +1 -1
  488. package/Libraries/Utilities/DeviceInfo.js +1 -1
  489. package/Libraries/Utilities/Dimensions.js +1 -1
  490. package/Libraries/Utilities/FeatureDetection.js +1 -1
  491. package/Libraries/Utilities/GlobalPerformanceLogger.js +1 -1
  492. package/Libraries/Utilities/HMRClient.js +3 -3
  493. package/Libraries/Utilities/HMRClientProdShim.js +1 -1
  494. package/Libraries/Utilities/JSDevSupportModule.js +4 -5
  495. package/Libraries/Utilities/LoadingView.android.js +1 -1
  496. package/Libraries/Utilities/LoadingView.ios.js +1 -1
  497. package/Libraries/Utilities/LoadingView.js +1 -1
  498. package/Libraries/Utilities/MatrixMath.js +20 -20
  499. package/Libraries/Utilities/NativeAppearance.js +1 -1
  500. package/Libraries/Utilities/NativeDevLoadingView.js +1 -1
  501. package/Libraries/Utilities/NativeDevSplitBundleLoader.js +1 -1
  502. package/Libraries/Utilities/NativeDeviceInfo.js +1 -1
  503. package/Libraries/Utilities/NativeJSDevSupport.js +1 -1
  504. package/Libraries/Utilities/NativePlatformConstantsAndroid.js +1 -1
  505. package/Libraries/Utilities/NativePlatformConstantsIOS.js +1 -1
  506. package/Libraries/Utilities/PerformanceLoggerContext.js +3 -4
  507. package/Libraries/Utilities/PixelRatio.js +1 -1
  508. package/Libraries/Utilities/Platform.android.js +1 -1
  509. package/Libraries/Utilities/Platform.ios.js +1 -1
  510. package/Libraries/Utilities/PolyfillFunctions.js +1 -1
  511. package/Libraries/Utilities/RCTLog.js +1 -1
  512. package/Libraries/Utilities/ReactNativeTestTools.js +8 -12
  513. package/Libraries/Utilities/SceneTracker.js +5 -4
  514. package/Libraries/Utilities/__mocks__/BackHandler.js +4 -4
  515. package/Libraries/Utilities/__mocks__/GlobalPerformanceLogger.js +1 -1
  516. package/Libraries/Utilities/__mocks__/PixelRatio.js +1 -1
  517. package/Libraries/Utilities/binaryToBase64.js +1 -1
  518. package/Libraries/Utilities/buildStyleInterpolator.js +10 -10
  519. package/Libraries/Utilities/clamp.js +1 -1
  520. package/Libraries/Utilities/codegenNativeCommands.js +1 -1
  521. package/Libraries/Utilities/codegenNativeComponent.js +4 -3
  522. package/Libraries/Utilities/createPerformanceLogger.js +1 -1
  523. package/Libraries/Utilities/deepFreezeAndThrowOnMutationInDev.js +3 -3
  524. package/Libraries/Utilities/defineLazyObjectProperty.js +1 -1
  525. package/Libraries/Utilities/deprecatedPropType.js +1 -1
  526. package/Libraries/Utilities/differ/deepDiffer.js +2 -2
  527. package/Libraries/Utilities/differ/insetsDiffer.js +2 -2
  528. package/Libraries/Utilities/differ/matricesDiffer.js +6 -2
  529. package/Libraries/Utilities/differ/pointsDiffer.js +2 -2
  530. package/Libraries/Utilities/differ/sizesDiffer.js +11 -5
  531. package/Libraries/Utilities/dismissKeyboard.js +1 -1
  532. package/Libraries/Utilities/groupByEveryN.js +1 -1
  533. package/Libraries/Utilities/infoLog.js +1 -1
  534. package/Libraries/Utilities/logError.js +2 -2
  535. package/Libraries/Utilities/mapWithSeparator.js +1 -1
  536. package/Libraries/Utilities/mergeIntoFast.js +2 -2
  537. package/Libraries/Utilities/setAndForwardRef.js +1 -1
  538. package/Libraries/Utilities/stringifySafe.js +1 -1
  539. package/Libraries/Utilities/truncate.js +2 -2
  540. package/Libraries/Utilities/useColorScheme.js +1 -1
  541. package/Libraries/Utilities/useMergeRefs.js +1 -1
  542. package/Libraries/Utilities/useRefEffect.js +1 -1
  543. package/Libraries/Utilities/useWindowDimensions.js +6 -2
  544. package/Libraries/Utilities/verifyComponentAttributeEquivalence.js +4 -2
  545. package/Libraries/Utilities/warnOnce.js +1 -1
  546. package/Libraries/Vibration/NativeVibration.js +1 -1
  547. package/Libraries/Vibration/Vibration.js +6 -6
  548. package/Libraries/WebSocket/NativeWebSocketModule.js +1 -1
  549. package/Libraries/WebSocket/WebSocket.js +1 -1
  550. package/Libraries/WebSocket/WebSocketEvent.js +1 -1
  551. package/Libraries/WebSocket/WebSocketInterceptor.js +7 -7
  552. package/Libraries/WebSocket/__mocks__/event-target-shim.js +1 -1
  553. package/Libraries/YellowBox/YellowBoxDeprecated.js +1 -1
  554. package/Libraries/__flowtests__/ReactNativeTypes-flowtest.js +1 -1
  555. package/Libraries/promiseRejectionTrackingOptions.js +2 -2
  556. package/Libraries/vendor/core/ErrorUtils.js +1 -1
  557. package/Libraries/vendor/emitter/EventEmitter.js +1 -1
  558. package/Libraries/vendor/emitter/EventSubscription.js +1 -1
  559. package/Libraries/vendor/emitter/_EmitterSubscription.js +3 -2
  560. package/Libraries/vendor/emitter/_EventEmitter.js +3 -2
  561. package/Libraries/vendor/emitter/_EventSubscription.js +3 -2
  562. package/Libraries/vendor/emitter/_EventSubscriptionVendor.js +2 -2
  563. package/Libraries/vendor/emitter/__flowtests__/EventEmitter-flowtest.js +1 -1
  564. package/flow/HermesInternalType.js +1 -1
  565. package/flow/Position.js +1 -1
  566. package/flow/Promise.js +1 -1
  567. package/flow/Stringish.js +1 -1
  568. package/flow/console.js +1 -1
  569. package/flow/global.js +2 -6
  570. package/flow/jest.js +1 -1
  571. package/flow/use-subscription.js +1 -1
  572. package/flow-typed/npm/glob_v7.x.x.js +79 -0
  573. package/index.js +26 -17
  574. package/index.win32.js +26 -20
  575. package/interface.js +1 -1
  576. package/jest/MockNativeMethods.js +1 -1
  577. package/jest/assetFileTransformer.js +3 -3
  578. package/jest/mockComponent.js +1 -1
  579. package/jest/mockModal.js +3 -3
  580. package/jest/mockNativeComponent.js +5 -1
  581. package/jest/mockScrollView.js +1 -1
  582. package/jest/preprocessor.js +10 -78
  583. package/jest/renderer.js +1 -1
  584. package/jest/setup.js +5 -4
  585. package/overrides.json +98 -63
  586. package/package.json +24 -23
  587. package/rn-get-polyfills.js +1 -1
  588. package/rntypes/globals.d.ts +6 -5
  589. package/rntypes/index.d.ts +89 -312
  590. package/rntypes/legacy-properties.d.ts +0 -28
  591. package/src/rntypes/globals.d.ts +6 -5
  592. package/src/rntypes/index.d.ts +89 -312
  593. package/src/rntypes/legacy-properties.d.ts +0 -28
  594. package/Libraries/Components/TextInput/AndroidTextInputViewConfig.js +0 -116
  595. package/Libraries/DeprecatedPropTypes/DeprecatedColorPropType.js +0 -76
  596. package/Libraries/DeprecatedPropTypes/DeprecatedEdgeInsetsPropType.js +0 -28
  597. package/Libraries/DeprecatedPropTypes/DeprecatedImagePropType.android.js +0 -131
  598. package/Libraries/DeprecatedPropTypes/DeprecatedImagePropType.ios.js +0 -82
  599. package/Libraries/DeprecatedPropTypes/DeprecatedImagePropType.win32.js +0 -82
  600. package/Libraries/DeprecatedPropTypes/DeprecatedImageSourcePropType.js +0 -40
  601. package/Libraries/DeprecatedPropTypes/DeprecatedImageStylePropTypes.js +0 -76
  602. package/Libraries/DeprecatedPropTypes/DeprecatedLayoutPropTypes.js +0 -233
  603. package/Libraries/DeprecatedPropTypes/DeprecatedPointPropType.js +0 -24
  604. package/Libraries/DeprecatedPropTypes/DeprecatedShadowPropTypesIOS.js +0 -30
  605. package/Libraries/DeprecatedPropTypes/DeprecatedStyleSheetPropType.js +0 -32
  606. package/Libraries/DeprecatedPropTypes/DeprecatedTextInputPropTypes.js +0 -622
  607. package/Libraries/DeprecatedPropTypes/DeprecatedTextPropTypes.js +0 -158
  608. package/Libraries/DeprecatedPropTypes/DeprecatedTextStylePropTypes.js +0 -157
  609. package/Libraries/DeprecatedPropTypes/DeprecatedTransformPropTypes.js +0 -99
  610. package/Libraries/DeprecatedPropTypes/DeprecatedViewAccessibility.js +0 -46
  611. package/Libraries/DeprecatedPropTypes/DeprecatedViewPropTypes.js +0 -408
  612. package/Libraries/DeprecatedPropTypes/DeprecatedViewStylePropTypes.js +0 -68
  613. package/Libraries/DeprecatedPropTypes/deprecatedCreateStrictShapeTypeChecker.js +0 -86
  614. package/flow-typed/npm/prop-types_v15.x.x.js +0 -42
  615. package/src/Libraries/Lists/__tests__/__snapshots__/FlatList-test.js.snap +0 -427
  616. package/src/Libraries/Lists/__tests__/__snapshots__/SectionList-test.js.snap +0 -391
  617. package/src/Libraries/Lists/__tests__/__snapshots__/VirtualizeUtils-test.js.snap +0 -3
  618. package/src/Libraries/Lists/__tests__/__snapshots__/VirtualizedList-test.js.snap +0 -4634
  619. package/src/Libraries/Lists/__tests__/__snapshots__/VirtualizedSectionList-test.js.snap +0 -1153
@@ -1,4634 +0,0 @@
1
- // Jest Snapshot v1, https://goo.gl/fbAQLP
2
-
3
- exports[`VirtualizedList forwards correct stickyHeaderIndices when ListHeaderComponent present 1`] = `
4
- <RCTScrollView
5
- ListHeaderComponent={[Function]}
6
- data={
7
- Array [
8
- Object {
9
- "key": 0,
10
- "sticky": true,
11
- },
12
- Object {
13
- "key": 1,
14
- },
15
- Object {
16
- "key": 2,
17
- },
18
- Object {
19
- "key": 3,
20
- "sticky": true,
21
- },
22
- Object {
23
- "key": 4,
24
- },
25
- Object {
26
- "key": 5,
27
- },
28
- Object {
29
- "key": 6,
30
- "sticky": true,
31
- },
32
- Object {
33
- "key": 7,
34
- },
35
- Object {
36
- "key": 8,
37
- },
38
- Object {
39
- "key": 9,
40
- "sticky": true,
41
- },
42
- ]
43
- }
44
- getItem={[Function]}
45
- getItemCount={[Function]}
46
- getItemLayout={[Function]}
47
- initialNumToRender={10}
48
- onContentSizeChange={[Function]}
49
- onLayout={[Function]}
50
- onMomentumScrollBegin={[Function]}
51
- onMomentumScrollEnd={[Function]}
52
- onScroll={[Function]}
53
- onScrollBeginDrag={[Function]}
54
- onScrollEndDrag={[Function]}
55
- renderItem={[Function]}
56
- scrollEventThrottle={50}
57
- stickyHeaderIndices={
58
- Array [
59
- 0,
60
- 3,
61
- 6,
62
- 9,
63
- ]
64
- }
65
- >
66
- <View>
67
- <View
68
- onLayout={[Function]}
69
- >
70
- <Header />
71
- </View>
72
- <View
73
- style={null}
74
- >
75
- <MockCellItem
76
- sticky={true}
77
- value={0}
78
- />
79
- </View>
80
- <View
81
- style={null}
82
- >
83
- <MockCellItem
84
- value={1}
85
- />
86
- </View>
87
- <View
88
- style={null}
89
- >
90
- <MockCellItem
91
- value={2}
92
- />
93
- </View>
94
- <View
95
- style={null}
96
- >
97
- <MockCellItem
98
- sticky={true}
99
- value={3}
100
- />
101
- </View>
102
- <View
103
- style={null}
104
- >
105
- <MockCellItem
106
- value={4}
107
- />
108
- </View>
109
- <View
110
- style={null}
111
- >
112
- <MockCellItem
113
- value={5}
114
- />
115
- </View>
116
- <View
117
- style={null}
118
- >
119
- <MockCellItem
120
- sticky={true}
121
- value={6}
122
- />
123
- </View>
124
- <View
125
- style={null}
126
- >
127
- <MockCellItem
128
- value={7}
129
- />
130
- </View>
131
- <View
132
- style={null}
133
- >
134
- <MockCellItem
135
- value={8}
136
- />
137
- </View>
138
- <View
139
- style={null}
140
- >
141
- <MockCellItem
142
- sticky={true}
143
- value={9}
144
- />
145
- </View>
146
- </View>
147
- </RCTScrollView>
148
- `;
149
-
150
- exports[`VirtualizedList forwards correct stickyHeaderIndices when all in initial render window 1`] = `
151
- <RCTScrollView
152
- data={
153
- Array [
154
- Object {
155
- "key": 0,
156
- "sticky": true,
157
- },
158
- Object {
159
- "key": 1,
160
- },
161
- Object {
162
- "key": 2,
163
- },
164
- Object {
165
- "key": 3,
166
- "sticky": true,
167
- },
168
- Object {
169
- "key": 4,
170
- },
171
- Object {
172
- "key": 5,
173
- },
174
- Object {
175
- "key": 6,
176
- "sticky": true,
177
- },
178
- Object {
179
- "key": 7,
180
- },
181
- Object {
182
- "key": 8,
183
- },
184
- Object {
185
- "key": 9,
186
- "sticky": true,
187
- },
188
- ]
189
- }
190
- getItem={[Function]}
191
- getItemCount={[Function]}
192
- getItemLayout={[Function]}
193
- initialNumToRender={10}
194
- onContentSizeChange={[Function]}
195
- onLayout={[Function]}
196
- onMomentumScrollBegin={[Function]}
197
- onMomentumScrollEnd={[Function]}
198
- onScroll={[Function]}
199
- onScrollBeginDrag={[Function]}
200
- onScrollEndDrag={[Function]}
201
- renderItem={[Function]}
202
- scrollEventThrottle={50}
203
- stickyHeaderIndices={
204
- Array [
205
- 0,
206
- 3,
207
- 6,
208
- 9,
209
- ]
210
- }
211
- >
212
- <View>
213
- <View
214
- style={null}
215
- >
216
- <MockCellItem
217
- sticky={true}
218
- value={0}
219
- />
220
- </View>
221
- <View
222
- style={null}
223
- >
224
- <MockCellItem
225
- value={1}
226
- />
227
- </View>
228
- <View
229
- style={null}
230
- >
231
- <MockCellItem
232
- value={2}
233
- />
234
- </View>
235
- <View
236
- style={null}
237
- >
238
- <MockCellItem
239
- sticky={true}
240
- value={3}
241
- />
242
- </View>
243
- <View
244
- style={null}
245
- >
246
- <MockCellItem
247
- value={4}
248
- />
249
- </View>
250
- <View
251
- style={null}
252
- >
253
- <MockCellItem
254
- value={5}
255
- />
256
- </View>
257
- <View
258
- style={null}
259
- >
260
- <MockCellItem
261
- sticky={true}
262
- value={6}
263
- />
264
- </View>
265
- <View
266
- style={null}
267
- >
268
- <MockCellItem
269
- value={7}
270
- />
271
- </View>
272
- <View
273
- style={null}
274
- >
275
- <MockCellItem
276
- value={8}
277
- />
278
- </View>
279
- <View
280
- style={null}
281
- >
282
- <MockCellItem
283
- sticky={true}
284
- value={9}
285
- />
286
- </View>
287
- </View>
288
- </RCTScrollView>
289
- `;
290
-
291
- exports[`VirtualizedList forwards correct stickyHeaderIndices when partially in initial render window 1`] = `
292
- <RCTScrollView
293
- data={
294
- Array [
295
- Object {
296
- "key": 0,
297
- "sticky": true,
298
- },
299
- Object {
300
- "key": 1,
301
- },
302
- Object {
303
- "key": 2,
304
- },
305
- Object {
306
- "key": 3,
307
- "sticky": true,
308
- },
309
- Object {
310
- "key": 4,
311
- },
312
- Object {
313
- "key": 5,
314
- },
315
- Object {
316
- "key": 6,
317
- "sticky": true,
318
- },
319
- Object {
320
- "key": 7,
321
- },
322
- Object {
323
- "key": 8,
324
- },
325
- Object {
326
- "key": 9,
327
- "sticky": true,
328
- },
329
- ]
330
- }
331
- getItem={[Function]}
332
- getItemCount={[Function]}
333
- getItemLayout={[Function]}
334
- initialNumToRender={5}
335
- onContentSizeChange={[Function]}
336
- onLayout={[Function]}
337
- onMomentumScrollBegin={[Function]}
338
- onMomentumScrollEnd={[Function]}
339
- onScroll={[Function]}
340
- onScrollBeginDrag={[Function]}
341
- onScrollEndDrag={[Function]}
342
- renderItem={[Function]}
343
- scrollEventThrottle={50}
344
- stickyHeaderIndices={
345
- Array [
346
- 0,
347
- 3,
348
- ]
349
- }
350
- >
351
- <View>
352
- <View
353
- style={null}
354
- >
355
- <MockCellItem
356
- sticky={true}
357
- value={0}
358
- />
359
- </View>
360
- <View
361
- style={null}
362
- >
363
- <MockCellItem
364
- value={1}
365
- />
366
- </View>
367
- <View
368
- style={null}
369
- >
370
- <MockCellItem
371
- value={2}
372
- />
373
- </View>
374
- <View
375
- style={null}
376
- >
377
- <MockCellItem
378
- sticky={true}
379
- value={3}
380
- />
381
- </View>
382
- <View
383
- style={null}
384
- >
385
- <MockCellItem
386
- value={4}
387
- />
388
- </View>
389
- <View
390
- style={
391
- Object {
392
- "height": 50,
393
- }
394
- }
395
- />
396
- </View>
397
- </RCTScrollView>
398
- `;
399
-
400
- exports[`VirtualizedList handles nested lists 1`] = `
401
- <RCTScrollView
402
- data={
403
- Array [
404
- Object {
405
- "key": "outer0",
406
- },
407
- Object {
408
- "key": "outer1",
409
- },
410
- ]
411
- }
412
- getItem={[Function]}
413
- getItemCount={[Function]}
414
- onContentSizeChange={[Function]}
415
- onLayout={[Function]}
416
- onMomentumScrollBegin={[Function]}
417
- onMomentumScrollEnd={[Function]}
418
- onScroll={[Function]}
419
- onScrollBeginDrag={[Function]}
420
- onScrollEndDrag={[Function]}
421
- renderItem={[Function]}
422
- scrollEventThrottle={50}
423
- stickyHeaderIndices={Array []}
424
- >
425
- <View>
426
- <View
427
- onLayout={[Function]}
428
- style={null}
429
- >
430
- <View
431
- data={
432
- Array [
433
- Object {
434
- "key": "outer0:inner0",
435
- },
436
- Object {
437
- "key": "outer0:inner1",
438
- },
439
- ]
440
- }
441
- getItem={[Function]}
442
- getItemCount={[Function]}
443
- horizontal={false}
444
- onContentSizeChange={[Function]}
445
- onLayout={[Function]}
446
- onMomentumScrollBegin={[Function]}
447
- onMomentumScrollEnd={[Function]}
448
- onScroll={[Function]}
449
- onScrollBeginDrag={[Function]}
450
- onScrollEndDrag={[Function]}
451
- renderItem={[Function]}
452
- scrollEventThrottle={50}
453
- stickyHeaderIndices={Array []}
454
- >
455
- <View
456
- onLayout={[Function]}
457
- style={null}
458
- >
459
- <item
460
- title="outer0:inner0"
461
- />
462
- </View>
463
- <View
464
- onLayout={[Function]}
465
- style={null}
466
- >
467
- <item
468
- title="outer0:inner1"
469
- />
470
- </View>
471
- </View>
472
- </View>
473
- <View
474
- onLayout={[Function]}
475
- style={null}
476
- >
477
- <RCTScrollView
478
- data={
479
- Array [
480
- Object {
481
- "key": "outer1:inner0",
482
- },
483
- Object {
484
- "key": "outer1:inner1",
485
- },
486
- ]
487
- }
488
- getItem={[Function]}
489
- getItemCount={[Function]}
490
- horizontal={true}
491
- onContentSizeChange={[Function]}
492
- onLayout={[Function]}
493
- onMomentumScrollBegin={[Function]}
494
- onMomentumScrollEnd={[Function]}
495
- onScroll={[Function]}
496
- onScrollBeginDrag={[Function]}
497
- onScrollEndDrag={[Function]}
498
- renderItem={[Function]}
499
- scrollEventThrottle={50}
500
- stickyHeaderIndices={Array []}
501
- >
502
- <View>
503
- <View
504
- onLayout={[Function]}
505
- style={
506
- Array [
507
- Object {
508
- "flexDirection": "row",
509
- },
510
- null,
511
- ]
512
- }
513
- >
514
- <item
515
- title="outer1:inner0"
516
- />
517
- </View>
518
- <View
519
- onLayout={[Function]}
520
- style={
521
- Array [
522
- Object {
523
- "flexDirection": "row",
524
- },
525
- null,
526
- ]
527
- }
528
- >
529
- <item
530
- title="outer1:inner1"
531
- />
532
- </View>
533
- </View>
534
- </RCTScrollView>
535
- </View>
536
- </View>
537
- </RCTScrollView>
538
- `;
539
-
540
- exports[`VirtualizedList handles separators correctly 1`] = `
541
- <RCTScrollView
542
- ItemSeparatorComponent={[Function]}
543
- data={
544
- Array [
545
- Object {
546
- "key": "i0",
547
- },
548
- Object {
549
- "key": "i1",
550
- },
551
- Object {
552
- "key": "i2",
553
- },
554
- ]
555
- }
556
- getItem={[Function]}
557
- getItemCount={[Function]}
558
- onContentSizeChange={[Function]}
559
- onLayout={[Function]}
560
- onMomentumScrollBegin={[Function]}
561
- onMomentumScrollEnd={[Function]}
562
- onScroll={[Function]}
563
- onScrollBeginDrag={[Function]}
564
- onScrollEndDrag={[Function]}
565
- renderItem={[Function]}
566
- scrollEventThrottle={50}
567
- stickyHeaderIndices={Array []}
568
- >
569
- <View>
570
- <View
571
- onLayout={[Function]}
572
- style={null}
573
- >
574
- <item
575
- title="i0"
576
- />
577
- <separator
578
- highlighted={false}
579
- leadingItem={
580
- Object {
581
- "key": "i0",
582
- }
583
- }
584
- />
585
- </View>
586
- <View
587
- onLayout={[Function]}
588
- style={null}
589
- >
590
- <item
591
- title="i1"
592
- />
593
- <separator
594
- highlighted={false}
595
- leadingItem={
596
- Object {
597
- "key": "i1",
598
- }
599
- }
600
- />
601
- </View>
602
- <View
603
- onLayout={[Function]}
604
- style={null}
605
- >
606
- <item
607
- title="i2"
608
- />
609
- </View>
610
- </View>
611
- </RCTScrollView>
612
- `;
613
-
614
- exports[`VirtualizedList handles separators correctly 2`] = `
615
- <RCTScrollView
616
- ItemSeparatorComponent={[Function]}
617
- data={
618
- Array [
619
- Object {
620
- "key": "i0",
621
- },
622
- Object {
623
- "key": "i1",
624
- },
625
- Object {
626
- "key": "i2",
627
- },
628
- ]
629
- }
630
- getItem={[Function]}
631
- getItemCount={[Function]}
632
- onContentSizeChange={[Function]}
633
- onLayout={[Function]}
634
- onMomentumScrollBegin={[Function]}
635
- onMomentumScrollEnd={[Function]}
636
- onScroll={[Function]}
637
- onScrollBeginDrag={[Function]}
638
- onScrollEndDrag={[Function]}
639
- renderItem={[Function]}
640
- scrollEventThrottle={50}
641
- stickyHeaderIndices={Array []}
642
- >
643
- <View>
644
- <View
645
- onLayout={[Function]}
646
- style={null}
647
- >
648
- <item
649
- title="i0"
650
- />
651
- <separator
652
- highlighted={true}
653
- leadingItem={
654
- Object {
655
- "key": "i0",
656
- }
657
- }
658
- />
659
- </View>
660
- <View
661
- onLayout={[Function]}
662
- style={null}
663
- >
664
- <item
665
- title="i1"
666
- />
667
- <separator
668
- highlighted={true}
669
- leadingItem={
670
- Object {
671
- "key": "i1",
672
- }
673
- }
674
- />
675
- </View>
676
- <View
677
- onLayout={[Function]}
678
- style={null}
679
- >
680
- <item
681
- title="i2"
682
- />
683
- </View>
684
- </View>
685
- </RCTScrollView>
686
- `;
687
-
688
- exports[`VirtualizedList handles separators correctly 3`] = `
689
- <RCTScrollView
690
- ItemSeparatorComponent={[Function]}
691
- data={
692
- Array [
693
- Object {
694
- "key": "i0",
695
- },
696
- Object {
697
- "key": "i1",
698
- },
699
- Object {
700
- "key": "i2",
701
- },
702
- ]
703
- }
704
- getItem={[Function]}
705
- getItemCount={[Function]}
706
- onContentSizeChange={[Function]}
707
- onLayout={[Function]}
708
- onMomentumScrollBegin={[Function]}
709
- onMomentumScrollEnd={[Function]}
710
- onScroll={[Function]}
711
- onScrollBeginDrag={[Function]}
712
- onScrollEndDrag={[Function]}
713
- renderItem={[Function]}
714
- scrollEventThrottle={50}
715
- stickyHeaderIndices={Array []}
716
- >
717
- <View>
718
- <View
719
- onLayout={[Function]}
720
- style={null}
721
- >
722
- <item
723
- title="i0"
724
- />
725
- <separator
726
- highlighted={true}
727
- leadingItem={
728
- Object {
729
- "key": "i0",
730
- }
731
- }
732
- />
733
- </View>
734
- <View
735
- onLayout={[Function]}
736
- style={null}
737
- >
738
- <item
739
- title="i1"
740
- />
741
- <separator
742
- highlighted={true}
743
- leadingItem={
744
- Object {
745
- "key": "i1",
746
- }
747
- }
748
- press={true}
749
- />
750
- </View>
751
- <View
752
- onLayout={[Function]}
753
- style={null}
754
- >
755
- <item
756
- title="i2"
757
- />
758
- </View>
759
- </View>
760
- </RCTScrollView>
761
- `;
762
-
763
- exports[`VirtualizedList keeps sticky headers above viewport visualized 1`] = `
764
- <RCTScrollView
765
- data={
766
- Array [
767
- Object {
768
- "key": 0,
769
- "sticky": true,
770
- },
771
- Object {
772
- "key": 1,
773
- },
774
- Object {
775
- "key": 2,
776
- },
777
- Object {
778
- "key": 3,
779
- "sticky": true,
780
- },
781
- Object {
782
- "key": 4,
783
- },
784
- Object {
785
- "key": 5,
786
- },
787
- Object {
788
- "key": 6,
789
- "sticky": true,
790
- },
791
- Object {
792
- "key": 7,
793
- },
794
- Object {
795
- "key": 8,
796
- },
797
- Object {
798
- "key": 9,
799
- "sticky": true,
800
- },
801
- Object {
802
- "key": 10,
803
- },
804
- Object {
805
- "key": 11,
806
- },
807
- Object {
808
- "key": 12,
809
- "sticky": true,
810
- },
811
- Object {
812
- "key": 13,
813
- },
814
- Object {
815
- "key": 14,
816
- },
817
- Object {
818
- "key": 15,
819
- "sticky": true,
820
- },
821
- Object {
822
- "key": 16,
823
- },
824
- Object {
825
- "key": 17,
826
- },
827
- Object {
828
- "key": 18,
829
- "sticky": true,
830
- },
831
- Object {
832
- "key": 19,
833
- },
834
- ]
835
- }
836
- getItem={[Function]}
837
- getItemCount={[Function]}
838
- getItemLayout={[Function]}
839
- initialNumToRender={1}
840
- onContentSizeChange={[Function]}
841
- onLayout={[Function]}
842
- onMomentumScrollBegin={[Function]}
843
- onMomentumScrollEnd={[Function]}
844
- onScroll={[Function]}
845
- onScrollBeginDrag={[Function]}
846
- onScrollEndDrag={[Function]}
847
- renderItem={[Function]}
848
- scrollEventThrottle={50}
849
- stickyHeaderIndices={
850
- Array [
851
- 0,
852
- 2,
853
- 4,
854
- 7,
855
- 10,
856
- 13,
857
- ]
858
- }
859
- windowSize={1}
860
- >
861
- <View>
862
- <View
863
- style={null}
864
- >
865
- <MockCellItem
866
- sticky={true}
867
- value={0}
868
- />
869
- </View>
870
- <View
871
- style={
872
- Object {
873
- "height": 50,
874
- }
875
- }
876
- />
877
- <View
878
- style={null}
879
- >
880
- <MockCellItem
881
- sticky={true}
882
- value={6}
883
- />
884
- </View>
885
- <View
886
- style={
887
- Object {
888
- "height": 20,
889
- }
890
- }
891
- />
892
- <View
893
- style={null}
894
- >
895
- <MockCellItem
896
- sticky={true}
897
- value={9}
898
- />
899
- </View>
900
- <View
901
- style={null}
902
- >
903
- <MockCellItem
904
- value={10}
905
- />
906
- </View>
907
- <View
908
- style={null}
909
- >
910
- <MockCellItem
911
- value={11}
912
- />
913
- </View>
914
- <View
915
- style={null}
916
- >
917
- <MockCellItem
918
- sticky={true}
919
- value={12}
920
- />
921
- </View>
922
- <View
923
- style={null}
924
- >
925
- <MockCellItem
926
- value={13}
927
- />
928
- </View>
929
- <View
930
- style={null}
931
- >
932
- <MockCellItem
933
- value={14}
934
- />
935
- </View>
936
- <View
937
- style={null}
938
- >
939
- <MockCellItem
940
- sticky={true}
941
- value={15}
942
- />
943
- </View>
944
- <View
945
- style={null}
946
- >
947
- <MockCellItem
948
- value={16}
949
- />
950
- </View>
951
- <View
952
- style={null}
953
- >
954
- <MockCellItem
955
- value={17}
956
- />
957
- </View>
958
- <View
959
- style={null}
960
- >
961
- <MockCellItem
962
- sticky={true}
963
- value={18}
964
- />
965
- </View>
966
- <View
967
- style={null}
968
- >
969
- <MockCellItem
970
- value={19}
971
- />
972
- </View>
973
- </View>
974
- </RCTScrollView>
975
- `;
976
-
977
- exports[`VirtualizedList renders all the bells and whistles 1`] = `
978
- <RCTScrollView
979
- ItemSeparatorComponent={[Function]}
980
- ListEmptyComponent={[Function]}
981
- ListFooterComponent={[Function]}
982
- ListHeaderComponent={[Function]}
983
- data={
984
- Array [
985
- Object {
986
- "id": "0",
987
- },
988
- Object {
989
- "id": "1",
990
- },
991
- Object {
992
- "id": "2",
993
- },
994
- Object {
995
- "id": "3",
996
- },
997
- Object {
998
- "id": "4",
999
- },
1000
- ]
1001
- }
1002
- getItem={[Function]}
1003
- getItemCount={[Function]}
1004
- getItemLayout={[Function]}
1005
- invertStickyHeaders={true}
1006
- inverted={true}
1007
- keyExtractor={[Function]}
1008
- onContentSizeChange={[Function]}
1009
- onLayout={[Function]}
1010
- onMomentumScrollBegin={[Function]}
1011
- onMomentumScrollEnd={[Function]}
1012
- onRefresh={[MockFunction]}
1013
- onScroll={[Function]}
1014
- onScrollBeginDrag={[Function]}
1015
- onScrollEndDrag={[Function]}
1016
- refreshControl={
1017
- <RefreshControlMock
1018
- onRefresh={[MockFunction]}
1019
- refreshing={false}
1020
- />
1021
- }
1022
- refreshing={false}
1023
- renderItem={[Function]}
1024
- scrollEventThrottle={50}
1025
- stickyHeaderIndices={Array []}
1026
- style={
1027
- Array [
1028
- Object {
1029
- "transform": Array [
1030
- Object {
1031
- "scaleY": -1,
1032
- },
1033
- ],
1034
- },
1035
- undefined,
1036
- ]
1037
- }
1038
- >
1039
- <RCTRefreshControl />
1040
- <View>
1041
- <View
1042
- onLayout={[Function]}
1043
- style={
1044
- Object {
1045
- "transform": Array [
1046
- Object {
1047
- "scaleY": -1,
1048
- },
1049
- ],
1050
- }
1051
- }
1052
- >
1053
- <header />
1054
- </View>
1055
- <View
1056
- style={
1057
- Array [
1058
- Object {
1059
- "flexDirection": "column-reverse",
1060
- },
1061
- Object {
1062
- "transform": Array [
1063
- Object {
1064
- "scaleY": -1,
1065
- },
1066
- ],
1067
- },
1068
- ]
1069
- }
1070
- >
1071
- <item
1072
- value="0"
1073
- />
1074
- <separator />
1075
- </View>
1076
- <View
1077
- style={
1078
- Array [
1079
- Object {
1080
- "flexDirection": "column-reverse",
1081
- },
1082
- Object {
1083
- "transform": Array [
1084
- Object {
1085
- "scaleY": -1,
1086
- },
1087
- ],
1088
- },
1089
- ]
1090
- }
1091
- >
1092
- <item
1093
- value="1"
1094
- />
1095
- <separator />
1096
- </View>
1097
- <View
1098
- style={
1099
- Array [
1100
- Object {
1101
- "flexDirection": "column-reverse",
1102
- },
1103
- Object {
1104
- "transform": Array [
1105
- Object {
1106
- "scaleY": -1,
1107
- },
1108
- ],
1109
- },
1110
- ]
1111
- }
1112
- >
1113
- <item
1114
- value="2"
1115
- />
1116
- <separator />
1117
- </View>
1118
- <View
1119
- style={
1120
- Array [
1121
- Object {
1122
- "flexDirection": "column-reverse",
1123
- },
1124
- Object {
1125
- "transform": Array [
1126
- Object {
1127
- "scaleY": -1,
1128
- },
1129
- ],
1130
- },
1131
- ]
1132
- }
1133
- >
1134
- <item
1135
- value="3"
1136
- />
1137
- <separator />
1138
- </View>
1139
- <View
1140
- style={
1141
- Array [
1142
- Object {
1143
- "flexDirection": "column-reverse",
1144
- },
1145
- Object {
1146
- "transform": Array [
1147
- Object {
1148
- "scaleY": -1,
1149
- },
1150
- ],
1151
- },
1152
- ]
1153
- }
1154
- >
1155
- <item
1156
- value="4"
1157
- />
1158
- </View>
1159
- <View
1160
- onLayout={[Function]}
1161
- style={
1162
- Object {
1163
- "transform": Array [
1164
- Object {
1165
- "scaleY": -1,
1166
- },
1167
- ],
1168
- }
1169
- }
1170
- >
1171
- <footer />
1172
- </View>
1173
- </View>
1174
- </RCTScrollView>
1175
- `;
1176
-
1177
- exports[`VirtualizedList renders empty list 1`] = `
1178
- <RCTScrollView
1179
- data={Array []}
1180
- getItem={[Function]}
1181
- getItemCount={[Function]}
1182
- onContentSizeChange={[Function]}
1183
- onLayout={[Function]}
1184
- onMomentumScrollBegin={[Function]}
1185
- onMomentumScrollEnd={[Function]}
1186
- onScroll={[Function]}
1187
- onScrollBeginDrag={[Function]}
1188
- onScrollEndDrag={[Function]}
1189
- renderItem={[Function]}
1190
- scrollEventThrottle={50}
1191
- stickyHeaderIndices={Array []}
1192
- >
1193
- <View />
1194
- </RCTScrollView>
1195
- `;
1196
-
1197
- exports[`VirtualizedList renders empty list after batch 1`] = `
1198
- <RCTScrollView
1199
- data={Array []}
1200
- getItem={[Function]}
1201
- getItemCount={[Function]}
1202
- onContentSizeChange={[Function]}
1203
- onLayout={[Function]}
1204
- onMomentumScrollBegin={[Function]}
1205
- onMomentumScrollEnd={[Function]}
1206
- onScroll={[Function]}
1207
- onScrollBeginDrag={[Function]}
1208
- onScrollEndDrag={[Function]}
1209
- renderItem={[Function]}
1210
- scrollEventThrottle={50}
1211
- stickyHeaderIndices={Array []}
1212
- >
1213
- <View />
1214
- </RCTScrollView>
1215
- `;
1216
-
1217
- exports[`VirtualizedList renders empty list with empty component 1`] = `
1218
- <RCTScrollView
1219
- ListEmptyComponent={[Function]}
1220
- ListFooterComponent={[Function]}
1221
- ListHeaderComponent={[Function]}
1222
- data={Array []}
1223
- getItem={[Function]}
1224
- getItemCount={[Function]}
1225
- onContentSizeChange={[Function]}
1226
- onLayout={[Function]}
1227
- onMomentumScrollBegin={[Function]}
1228
- onMomentumScrollEnd={[Function]}
1229
- onScroll={[Function]}
1230
- onScrollBeginDrag={[Function]}
1231
- onScrollEndDrag={[Function]}
1232
- renderItem={[Function]}
1233
- scrollEventThrottle={50}
1234
- stickyHeaderIndices={Array []}
1235
- >
1236
- <View>
1237
- <View
1238
- onLayout={[Function]}
1239
- >
1240
- <header />
1241
- </View>
1242
- <empty />
1243
- <View
1244
- onLayout={[Function]}
1245
- >
1246
- <footer />
1247
- </View>
1248
- </View>
1249
- </RCTScrollView>
1250
- `;
1251
-
1252
- exports[`VirtualizedList renders list with empty component 1`] = `
1253
- <RCTScrollView
1254
- ListEmptyComponent={[Function]}
1255
- data={
1256
- Array [
1257
- Object {
1258
- "key": "hello",
1259
- },
1260
- ]
1261
- }
1262
- getItem={[Function]}
1263
- getItemCount={[Function]}
1264
- onContentSizeChange={[Function]}
1265
- onLayout={[Function]}
1266
- onMomentumScrollBegin={[Function]}
1267
- onMomentumScrollEnd={[Function]}
1268
- onScroll={[Function]}
1269
- onScrollBeginDrag={[Function]}
1270
- onScrollEndDrag={[Function]}
1271
- renderItem={[Function]}
1272
- scrollEventThrottle={50}
1273
- stickyHeaderIndices={Array []}
1274
- >
1275
- <View>
1276
- <View
1277
- onLayout={[Function]}
1278
- style={null}
1279
- >
1280
- <item
1281
- value="hello"
1282
- />
1283
- </View>
1284
- </View>
1285
- </RCTScrollView>
1286
- `;
1287
-
1288
- exports[`VirtualizedList renders null list 1`] = `
1289
- <RCTScrollView
1290
- getItem={[Function]}
1291
- getItemCount={[Function]}
1292
- onContentSizeChange={[Function]}
1293
- onLayout={[Function]}
1294
- onMomentumScrollBegin={[Function]}
1295
- onMomentumScrollEnd={[Function]}
1296
- onScroll={[Function]}
1297
- onScrollBeginDrag={[Function]}
1298
- onScrollEndDrag={[Function]}
1299
- renderItem={[Function]}
1300
- scrollEventThrottle={50}
1301
- stickyHeaderIndices={Array []}
1302
- >
1303
- <View />
1304
- </RCTScrollView>
1305
- `;
1306
-
1307
- exports[`VirtualizedList renders simple list 1`] = `
1308
- <RCTScrollView
1309
- data={
1310
- Array [
1311
- Object {
1312
- "key": "i1",
1313
- },
1314
- Object {
1315
- "key": "i2",
1316
- },
1317
- Object {
1318
- "key": "i3",
1319
- },
1320
- ]
1321
- }
1322
- getItem={[Function]}
1323
- getItemCount={[Function]}
1324
- onContentSizeChange={[Function]}
1325
- onLayout={[Function]}
1326
- onMomentumScrollBegin={[Function]}
1327
- onMomentumScrollEnd={[Function]}
1328
- onScroll={[Function]}
1329
- onScrollBeginDrag={[Function]}
1330
- onScrollEndDrag={[Function]}
1331
- renderItem={[Function]}
1332
- scrollEventThrottle={50}
1333
- stickyHeaderIndices={Array []}
1334
- >
1335
- <View>
1336
- <View
1337
- onLayout={[Function]}
1338
- style={null}
1339
- >
1340
- <item
1341
- value="i1"
1342
- />
1343
- </View>
1344
- <View
1345
- onLayout={[Function]}
1346
- style={null}
1347
- >
1348
- <item
1349
- value="i2"
1350
- />
1351
- </View>
1352
- <View
1353
- onLayout={[Function]}
1354
- style={null}
1355
- >
1356
- <item
1357
- value="i3"
1358
- />
1359
- </View>
1360
- </View>
1361
- </RCTScrollView>
1362
- `;
1363
-
1364
- exports[`VirtualizedList renders simple list using ListItemComponent 1`] = `
1365
- <RCTScrollView
1366
- ListItemComponent={[Function]}
1367
- data={
1368
- Array [
1369
- Object {
1370
- "key": "i1",
1371
- },
1372
- Object {
1373
- "key": "i2",
1374
- },
1375
- Object {
1376
- "key": "i3",
1377
- },
1378
- ]
1379
- }
1380
- getItem={[Function]}
1381
- getItemCount={[Function]}
1382
- onContentSizeChange={[Function]}
1383
- onLayout={[Function]}
1384
- onMomentumScrollBegin={[Function]}
1385
- onMomentumScrollEnd={[Function]}
1386
- onScroll={[Function]}
1387
- onScrollBeginDrag={[Function]}
1388
- onScrollEndDrag={[Function]}
1389
- scrollEventThrottle={50}
1390
- stickyHeaderIndices={Array []}
1391
- >
1392
- <View>
1393
- <View
1394
- onLayout={[Function]}
1395
- style={null}
1396
- >
1397
- <item
1398
- value="i1"
1399
- />
1400
- </View>
1401
- <View
1402
- onLayout={[Function]}
1403
- style={null}
1404
- >
1405
- <item
1406
- value="i2"
1407
- />
1408
- </View>
1409
- <View
1410
- onLayout={[Function]}
1411
- style={null}
1412
- >
1413
- <item
1414
- value="i3"
1415
- />
1416
- </View>
1417
- </View>
1418
- </RCTScrollView>
1419
- `;
1420
-
1421
- exports[`VirtualizedList renders sticky headers in viewport on batched render 1`] = `
1422
- <RCTScrollView
1423
- data={
1424
- Array [
1425
- Object {
1426
- "key": 0,
1427
- "sticky": true,
1428
- },
1429
- Object {
1430
- "key": 1,
1431
- },
1432
- Object {
1433
- "key": 2,
1434
- },
1435
- Object {
1436
- "key": 3,
1437
- "sticky": true,
1438
- },
1439
- Object {
1440
- "key": 4,
1441
- },
1442
- Object {
1443
- "key": 5,
1444
- },
1445
- Object {
1446
- "key": 6,
1447
- "sticky": true,
1448
- },
1449
- Object {
1450
- "key": 7,
1451
- },
1452
- Object {
1453
- "key": 8,
1454
- },
1455
- Object {
1456
- "key": 9,
1457
- "sticky": true,
1458
- },
1459
- ]
1460
- }
1461
- getItem={[Function]}
1462
- getItemCount={[Function]}
1463
- getItemLayout={[Function]}
1464
- initialNumToRender={1}
1465
- onContentSizeChange={[Function]}
1466
- onLayout={[Function]}
1467
- onMomentumScrollBegin={[Function]}
1468
- onMomentumScrollEnd={[Function]}
1469
- onScroll={[Function]}
1470
- onScrollBeginDrag={[Function]}
1471
- onScrollEndDrag={[Function]}
1472
- renderItem={[Function]}
1473
- scrollEventThrottle={50}
1474
- stickyHeaderIndices={
1475
- Array [
1476
- 0,
1477
- 3,
1478
- ]
1479
- }
1480
- windowSize={1}
1481
- >
1482
- <View>
1483
- <View
1484
- style={null}
1485
- >
1486
- <MockCellItem
1487
- sticky={true}
1488
- value={0}
1489
- />
1490
- </View>
1491
- <View
1492
- style={null}
1493
- >
1494
- <MockCellItem
1495
- value={1}
1496
- />
1497
- </View>
1498
- <View
1499
- style={null}
1500
- >
1501
- <MockCellItem
1502
- value={2}
1503
- />
1504
- </View>
1505
- <View
1506
- style={null}
1507
- >
1508
- <MockCellItem
1509
- sticky={true}
1510
- value={3}
1511
- />
1512
- </View>
1513
- <View
1514
- style={null}
1515
- >
1516
- <MockCellItem
1517
- value={4}
1518
- />
1519
- </View>
1520
- <View
1521
- style={
1522
- Object {
1523
- "height": 50,
1524
- }
1525
- }
1526
- />
1527
- </View>
1528
- </RCTScrollView>
1529
- `;
1530
-
1531
- exports[`VirtualizedList test getItem functionality where data is not an Array 1`] = `
1532
- <RCTScrollView
1533
- data={
1534
- Map {
1535
- "id_0" => Object {
1536
- "key": "item_0",
1537
- },
1538
- }
1539
- }
1540
- getItem={[Function]}
1541
- getItemCount={[Function]}
1542
- onContentSizeChange={[Function]}
1543
- onLayout={[Function]}
1544
- onMomentumScrollBegin={[Function]}
1545
- onMomentumScrollEnd={[Function]}
1546
- onScroll={[Function]}
1547
- onScrollBeginDrag={[Function]}
1548
- onScrollEndDrag={[Function]}
1549
- renderItem={[Function]}
1550
- scrollEventThrottle={50}
1551
- stickyHeaderIndices={Array []}
1552
- >
1553
- <View>
1554
- <View
1555
- onLayout={[Function]}
1556
- style={null}
1557
- >
1558
- <item
1559
- value="item_0"
1560
- />
1561
- </View>
1562
- </View>
1563
- </RCTScrollView>
1564
- `;
1565
-
1566
- exports[`VirtualizedList warns if both renderItem or ListItemComponent are specified. Uses ListItemComponent 1`] = `
1567
- <RCTScrollView
1568
- ListItemComponent={[Function]}
1569
- data={
1570
- Array [
1571
- Object {
1572
- "key": "i1",
1573
- },
1574
- ]
1575
- }
1576
- getItem={[Function]}
1577
- getItemCount={[Function]}
1578
- onContentSizeChange={[Function]}
1579
- onLayout={[Function]}
1580
- onMomentumScrollBegin={[Function]}
1581
- onMomentumScrollEnd={[Function]}
1582
- onScroll={[Function]}
1583
- onScrollBeginDrag={[Function]}
1584
- onScrollEndDrag={[Function]}
1585
- renderItem={[Function]}
1586
- scrollEventThrottle={50}
1587
- stickyHeaderIndices={Array []}
1588
- >
1589
- <View>
1590
- <View
1591
- onLayout={[Function]}
1592
- style={null}
1593
- >
1594
- <item
1595
- testID="i1-ListItemComponent"
1596
- value="i1"
1597
- />
1598
- </View>
1599
- </View>
1600
- </RCTScrollView>
1601
- `;
1602
-
1603
- exports[`adjusts render area with non-zero initialScrollIndex after scrolled 1`] = `
1604
- <RCTScrollView
1605
- data={
1606
- Array [
1607
- Object {
1608
- "key": 0,
1609
- },
1610
- Object {
1611
- "key": 1,
1612
- },
1613
- Object {
1614
- "key": 2,
1615
- },
1616
- Object {
1617
- "key": 3,
1618
- },
1619
- Object {
1620
- "key": 4,
1621
- },
1622
- Object {
1623
- "key": 5,
1624
- },
1625
- Object {
1626
- "key": 6,
1627
- },
1628
- Object {
1629
- "key": 7,
1630
- },
1631
- Object {
1632
- "key": 8,
1633
- },
1634
- Object {
1635
- "key": 9,
1636
- },
1637
- Object {
1638
- "key": 10,
1639
- },
1640
- Object {
1641
- "key": 11,
1642
- },
1643
- Object {
1644
- "key": 12,
1645
- },
1646
- Object {
1647
- "key": 13,
1648
- },
1649
- Object {
1650
- "key": 14,
1651
- },
1652
- Object {
1653
- "key": 15,
1654
- },
1655
- Object {
1656
- "key": 16,
1657
- },
1658
- Object {
1659
- "key": 17,
1660
- },
1661
- Object {
1662
- "key": 18,
1663
- },
1664
- Object {
1665
- "key": 19,
1666
- },
1667
- ]
1668
- }
1669
- getItem={[Function]}
1670
- getItemCount={[Function]}
1671
- getItemLayout={[Function]}
1672
- initialNumToRender={5}
1673
- initialScrollIndex={1}
1674
- maxToRenderPerBatch={10}
1675
- onContentSizeChange={[Function]}
1676
- onLayout={[Function]}
1677
- onMomentumScrollBegin={[Function]}
1678
- onMomentumScrollEnd={[Function]}
1679
- onScroll={[Function]}
1680
- onScrollBeginDrag={[Function]}
1681
- onScrollEndDrag={[Function]}
1682
- renderItem={[Function]}
1683
- scrollEventThrottle={50}
1684
- stickyHeaderIndices={Array []}
1685
- windowSize={10}
1686
- >
1687
- <View>
1688
- <View
1689
- style={null}
1690
- >
1691
- <MockCellItem
1692
- value={0}
1693
- />
1694
- </View>
1695
- <View
1696
- style={null}
1697
- >
1698
- <MockCellItem
1699
- value={1}
1700
- />
1701
- </View>
1702
- <View
1703
- style={null}
1704
- >
1705
- <MockCellItem
1706
- value={2}
1707
- />
1708
- </View>
1709
- <View
1710
- style={null}
1711
- >
1712
- <MockCellItem
1713
- value={3}
1714
- />
1715
- </View>
1716
- <View
1717
- style={null}
1718
- >
1719
- <MockCellItem
1720
- value={4}
1721
- />
1722
- </View>
1723
- <View
1724
- style={null}
1725
- >
1726
- <MockCellItem
1727
- value={5}
1728
- />
1729
- </View>
1730
- <View
1731
- style={null}
1732
- >
1733
- <MockCellItem
1734
- value={6}
1735
- />
1736
- </View>
1737
- <View
1738
- style={null}
1739
- >
1740
- <MockCellItem
1741
- value={7}
1742
- />
1743
- </View>
1744
- <View
1745
- style={null}
1746
- >
1747
- <MockCellItem
1748
- value={8}
1749
- />
1750
- </View>
1751
- <View
1752
- style={null}
1753
- >
1754
- <MockCellItem
1755
- value={9}
1756
- />
1757
- </View>
1758
- <View
1759
- style={null}
1760
- >
1761
- <MockCellItem
1762
- value={10}
1763
- />
1764
- </View>
1765
- <View
1766
- style={null}
1767
- >
1768
- <MockCellItem
1769
- value={11}
1770
- />
1771
- </View>
1772
- <View
1773
- style={null}
1774
- >
1775
- <MockCellItem
1776
- value={12}
1777
- />
1778
- </View>
1779
- <View
1780
- style={null}
1781
- >
1782
- <MockCellItem
1783
- value={13}
1784
- />
1785
- </View>
1786
- <View
1787
- style={null}
1788
- >
1789
- <MockCellItem
1790
- value={14}
1791
- />
1792
- </View>
1793
- <View
1794
- style={null}
1795
- >
1796
- <MockCellItem
1797
- value={15}
1798
- />
1799
- </View>
1800
- <View
1801
- style={null}
1802
- >
1803
- <MockCellItem
1804
- value={16}
1805
- />
1806
- </View>
1807
- <View
1808
- style={null}
1809
- >
1810
- <MockCellItem
1811
- value={17}
1812
- />
1813
- </View>
1814
- <View
1815
- style={null}
1816
- >
1817
- <MockCellItem
1818
- value={18}
1819
- />
1820
- </View>
1821
- <View
1822
- style={null}
1823
- >
1824
- <MockCellItem
1825
- value={19}
1826
- />
1827
- </View>
1828
- </View>
1829
- </RCTScrollView>
1830
- `;
1831
-
1832
- exports[`constrains batch render region when an item is removed 1`] = `
1833
- <RCTScrollView
1834
- data={
1835
- Array [
1836
- Object {
1837
- "key": 0,
1838
- },
1839
- Object {
1840
- "key": 1,
1841
- },
1842
- Object {
1843
- "key": 2,
1844
- },
1845
- Object {
1846
- "key": 3,
1847
- },
1848
- Object {
1849
- "key": 4,
1850
- },
1851
- ]
1852
- }
1853
- getItem={[Function]}
1854
- getItemCount={[Function]}
1855
- getItemLayout={[Function]}
1856
- initialNumToRender={1}
1857
- maxToRenderPerBatch={1}
1858
- onContentSizeChange={[Function]}
1859
- onLayout={[Function]}
1860
- onMomentumScrollBegin={[Function]}
1861
- onMomentumScrollEnd={[Function]}
1862
- onScroll={[Function]}
1863
- onScrollBeginDrag={[Function]}
1864
- onScrollEndDrag={[Function]}
1865
- renderItem={[Function]}
1866
- scrollEventThrottle={50}
1867
- stickyHeaderIndices={Array []}
1868
- >
1869
- <View>
1870
- <View
1871
- style={null}
1872
- >
1873
- <MockCellItem
1874
- value={0}
1875
- />
1876
- </View>
1877
- <View
1878
- style={null}
1879
- >
1880
- <MockCellItem
1881
- value={1}
1882
- />
1883
- </View>
1884
- <View
1885
- style={null}
1886
- >
1887
- <MockCellItem
1888
- value={2}
1889
- />
1890
- </View>
1891
- <View
1892
- style={null}
1893
- >
1894
- <MockCellItem
1895
- value={3}
1896
- />
1897
- </View>
1898
- <View
1899
- style={null}
1900
- >
1901
- <MockCellItem
1902
- value={4}
1903
- />
1904
- </View>
1905
- </View>
1906
- </RCTScrollView>
1907
- `;
1908
-
1909
- exports[`discards intitial render if initialScrollIndex != 0 1`] = `
1910
- <RCTScrollView
1911
- data={
1912
- Array [
1913
- Object {
1914
- "key": 0,
1915
- },
1916
- Object {
1917
- "key": 1,
1918
- },
1919
- Object {
1920
- "key": 2,
1921
- },
1922
- Object {
1923
- "key": 3,
1924
- },
1925
- Object {
1926
- "key": 4,
1927
- },
1928
- Object {
1929
- "key": 5,
1930
- },
1931
- Object {
1932
- "key": 6,
1933
- },
1934
- Object {
1935
- "key": 7,
1936
- },
1937
- Object {
1938
- "key": 8,
1939
- },
1940
- Object {
1941
- "key": 9,
1942
- },
1943
- Object {
1944
- "key": 10,
1945
- },
1946
- Object {
1947
- "key": 11,
1948
- },
1949
- Object {
1950
- "key": 12,
1951
- },
1952
- Object {
1953
- "key": 13,
1954
- },
1955
- Object {
1956
- "key": 14,
1957
- },
1958
- Object {
1959
- "key": 15,
1960
- },
1961
- Object {
1962
- "key": 16,
1963
- },
1964
- Object {
1965
- "key": 17,
1966
- },
1967
- Object {
1968
- "key": 18,
1969
- },
1970
- Object {
1971
- "key": 19,
1972
- },
1973
- ]
1974
- }
1975
- getItem={[Function]}
1976
- getItemCount={[Function]}
1977
- getItemLayout={[Function]}
1978
- initialNumToRender={5}
1979
- initialScrollIndex={5}
1980
- onContentSizeChange={[Function]}
1981
- onLayout={[Function]}
1982
- onMomentumScrollBegin={[Function]}
1983
- onMomentumScrollEnd={[Function]}
1984
- onScroll={[Function]}
1985
- onScrollBeginDrag={[Function]}
1986
- onScrollEndDrag={[Function]}
1987
- renderItem={[Function]}
1988
- scrollEventThrottle={50}
1989
- stickyHeaderIndices={Array []}
1990
- windowSize={1}
1991
- >
1992
- <View>
1993
- <View
1994
- style={
1995
- Object {
1996
- "height": 90,
1997
- }
1998
- }
1999
- />
2000
- <View
2001
- style={null}
2002
- >
2003
- <MockCellItem
2004
- value={9}
2005
- />
2006
- </View>
2007
- <View
2008
- style={null}
2009
- >
2010
- <MockCellItem
2011
- value={10}
2012
- />
2013
- </View>
2014
- <View
2015
- style={null}
2016
- >
2017
- <MockCellItem
2018
- value={11}
2019
- />
2020
- </View>
2021
- <View
2022
- style={null}
2023
- >
2024
- <MockCellItem
2025
- value={12}
2026
- />
2027
- </View>
2028
- <View
2029
- style={null}
2030
- >
2031
- <MockCellItem
2032
- value={13}
2033
- />
2034
- </View>
2035
- <View
2036
- style={null}
2037
- >
2038
- <MockCellItem
2039
- value={14}
2040
- />
2041
- </View>
2042
- <View
2043
- style={null}
2044
- >
2045
- <MockCellItem
2046
- value={15}
2047
- />
2048
- </View>
2049
- <View
2050
- style={null}
2051
- >
2052
- <MockCellItem
2053
- value={16}
2054
- />
2055
- </View>
2056
- <View
2057
- style={null}
2058
- >
2059
- <MockCellItem
2060
- value={17}
2061
- />
2062
- </View>
2063
- <View
2064
- style={null}
2065
- >
2066
- <MockCellItem
2067
- value={18}
2068
- />
2069
- </View>
2070
- <View
2071
- style={null}
2072
- >
2073
- <MockCellItem
2074
- value={19}
2075
- />
2076
- </View>
2077
- </View>
2078
- </RCTScrollView>
2079
- `;
2080
-
2081
- exports[`does not adjust render area until content area layed out 1`] = `
2082
- <RCTScrollView
2083
- data={
2084
- Array [
2085
- Object {
2086
- "key": 0,
2087
- },
2088
- Object {
2089
- "key": 1,
2090
- },
2091
- Object {
2092
- "key": 2,
2093
- },
2094
- Object {
2095
- "key": 3,
2096
- },
2097
- Object {
2098
- "key": 4,
2099
- },
2100
- Object {
2101
- "key": 5,
2102
- },
2103
- Object {
2104
- "key": 6,
2105
- },
2106
- Object {
2107
- "key": 7,
2108
- },
2109
- Object {
2110
- "key": 8,
2111
- },
2112
- Object {
2113
- "key": 9,
2114
- },
2115
- Object {
2116
- "key": 10,
2117
- },
2118
- Object {
2119
- "key": 11,
2120
- },
2121
- Object {
2122
- "key": 12,
2123
- },
2124
- Object {
2125
- "key": 13,
2126
- },
2127
- Object {
2128
- "key": 14,
2129
- },
2130
- Object {
2131
- "key": 15,
2132
- },
2133
- Object {
2134
- "key": 16,
2135
- },
2136
- Object {
2137
- "key": 17,
2138
- },
2139
- Object {
2140
- "key": 18,
2141
- },
2142
- Object {
2143
- "key": 19,
2144
- },
2145
- ]
2146
- }
2147
- getItem={[Function]}
2148
- getItemCount={[Function]}
2149
- getItemLayout={[Function]}
2150
- initialNumToRender={5}
2151
- onContentSizeChange={[Function]}
2152
- onLayout={[Function]}
2153
- onMomentumScrollBegin={[Function]}
2154
- onMomentumScrollEnd={[Function]}
2155
- onScroll={[Function]}
2156
- onScrollBeginDrag={[Function]}
2157
- onScrollEndDrag={[Function]}
2158
- renderItem={[Function]}
2159
- scrollEventThrottle={50}
2160
- stickyHeaderIndices={Array []}
2161
- windowSize={10}
2162
- >
2163
- <View>
2164
- <View
2165
- style={null}
2166
- >
2167
- <MockCellItem
2168
- value={0}
2169
- />
2170
- </View>
2171
- <View
2172
- style={null}
2173
- >
2174
- <MockCellItem
2175
- value={1}
2176
- />
2177
- </View>
2178
- <View
2179
- style={null}
2180
- >
2181
- <MockCellItem
2182
- value={2}
2183
- />
2184
- </View>
2185
- <View
2186
- style={null}
2187
- >
2188
- <MockCellItem
2189
- value={3}
2190
- />
2191
- </View>
2192
- <View
2193
- style={null}
2194
- >
2195
- <MockCellItem
2196
- value={4}
2197
- />
2198
- </View>
2199
- <View
2200
- style={
2201
- Object {
2202
- "height": 150,
2203
- }
2204
- }
2205
- />
2206
- </View>
2207
- </RCTScrollView>
2208
- `;
2209
-
2210
- exports[`does not adjust render area with non-zero initialScrollIndex until scrolled 1`] = `
2211
- <RCTScrollView
2212
- data={
2213
- Array [
2214
- Object {
2215
- "key": 0,
2216
- },
2217
- Object {
2218
- "key": 1,
2219
- },
2220
- Object {
2221
- "key": 2,
2222
- },
2223
- Object {
2224
- "key": 3,
2225
- },
2226
- Object {
2227
- "key": 4,
2228
- },
2229
- Object {
2230
- "key": 5,
2231
- },
2232
- Object {
2233
- "key": 6,
2234
- },
2235
- Object {
2236
- "key": 7,
2237
- },
2238
- Object {
2239
- "key": 8,
2240
- },
2241
- Object {
2242
- "key": 9,
2243
- },
2244
- Object {
2245
- "key": 10,
2246
- },
2247
- Object {
2248
- "key": 11,
2249
- },
2250
- Object {
2251
- "key": 12,
2252
- },
2253
- Object {
2254
- "key": 13,
2255
- },
2256
- Object {
2257
- "key": 14,
2258
- },
2259
- Object {
2260
- "key": 15,
2261
- },
2262
- Object {
2263
- "key": 16,
2264
- },
2265
- Object {
2266
- "key": 17,
2267
- },
2268
- Object {
2269
- "key": 18,
2270
- },
2271
- Object {
2272
- "key": 19,
2273
- },
2274
- ]
2275
- }
2276
- getItem={[Function]}
2277
- getItemCount={[Function]}
2278
- getItemLayout={[Function]}
2279
- initialNumToRender={5}
2280
- initialScrollIndex={1}
2281
- maxToRenderPerBatch={10}
2282
- onContentSizeChange={[Function]}
2283
- onLayout={[Function]}
2284
- onMomentumScrollBegin={[Function]}
2285
- onMomentumScrollEnd={[Function]}
2286
- onScroll={[Function]}
2287
- onScrollBeginDrag={[Function]}
2288
- onScrollEndDrag={[Function]}
2289
- renderItem={[Function]}
2290
- scrollEventThrottle={50}
2291
- stickyHeaderIndices={Array []}
2292
- windowSize={10}
2293
- >
2294
- <View>
2295
- <View
2296
- style={
2297
- Object {
2298
- "height": 10,
2299
- }
2300
- }
2301
- />
2302
- <View
2303
- style={null}
2304
- >
2305
- <MockCellItem
2306
- value={1}
2307
- />
2308
- </View>
2309
- <View
2310
- style={null}
2311
- >
2312
- <MockCellItem
2313
- value={2}
2314
- />
2315
- </View>
2316
- <View
2317
- style={null}
2318
- >
2319
- <MockCellItem
2320
- value={3}
2321
- />
2322
- </View>
2323
- <View
2324
- style={null}
2325
- >
2326
- <MockCellItem
2327
- value={4}
2328
- />
2329
- </View>
2330
- <View
2331
- style={null}
2332
- >
2333
- <MockCellItem
2334
- value={5}
2335
- />
2336
- </View>
2337
- <View
2338
- style={
2339
- Object {
2340
- "height": 140,
2341
- }
2342
- }
2343
- />
2344
- </View>
2345
- </RCTScrollView>
2346
- `;
2347
-
2348
- exports[`does not over-render when there is less than initialNumToRender cells 1`] = `
2349
- <RCTScrollView
2350
- data={
2351
- Array [
2352
- Object {
2353
- "key": 0,
2354
- },
2355
- Object {
2356
- "key": 1,
2357
- },
2358
- Object {
2359
- "key": 2,
2360
- },
2361
- Object {
2362
- "key": 3,
2363
- },
2364
- Object {
2365
- "key": 4,
2366
- },
2367
- Object {
2368
- "key": 5,
2369
- },
2370
- Object {
2371
- "key": 6,
2372
- },
2373
- Object {
2374
- "key": 7,
2375
- },
2376
- Object {
2377
- "key": 8,
2378
- },
2379
- Object {
2380
- "key": 9,
2381
- },
2382
- ]
2383
- }
2384
- getItem={[Function]}
2385
- getItemCount={[Function]}
2386
- getItemLayout={[Function]}
2387
- initialNumToRender={20}
2388
- initialScrollIndex={4}
2389
- onContentSizeChange={[Function]}
2390
- onLayout={[Function]}
2391
- onMomentumScrollBegin={[Function]}
2392
- onMomentumScrollEnd={[Function]}
2393
- onScroll={[Function]}
2394
- onScrollBeginDrag={[Function]}
2395
- onScrollEndDrag={[Function]}
2396
- renderItem={[Function]}
2397
- scrollEventThrottle={50}
2398
- stickyHeaderIndices={Array []}
2399
- >
2400
- <View>
2401
- <View
2402
- style={null}
2403
- >
2404
- <MockCellItem
2405
- value={0}
2406
- />
2407
- </View>
2408
- <View
2409
- style={null}
2410
- >
2411
- <MockCellItem
2412
- value={1}
2413
- />
2414
- </View>
2415
- <View
2416
- style={null}
2417
- >
2418
- <MockCellItem
2419
- value={2}
2420
- />
2421
- </View>
2422
- <View
2423
- style={null}
2424
- >
2425
- <MockCellItem
2426
- value={3}
2427
- />
2428
- </View>
2429
- <View
2430
- style={null}
2431
- >
2432
- <MockCellItem
2433
- value={4}
2434
- />
2435
- </View>
2436
- <View
2437
- style={null}
2438
- >
2439
- <MockCellItem
2440
- value={5}
2441
- />
2442
- </View>
2443
- <View
2444
- style={null}
2445
- >
2446
- <MockCellItem
2447
- value={6}
2448
- />
2449
- </View>
2450
- <View
2451
- style={null}
2452
- >
2453
- <MockCellItem
2454
- value={7}
2455
- />
2456
- </View>
2457
- <View
2458
- style={null}
2459
- >
2460
- <MockCellItem
2461
- value={8}
2462
- />
2463
- </View>
2464
- <View
2465
- style={null}
2466
- >
2467
- <MockCellItem
2468
- value={9}
2469
- />
2470
- </View>
2471
- </View>
2472
- </RCTScrollView>
2473
- `;
2474
-
2475
- exports[`eventually renders all items when virtualization disabled 1`] = `
2476
- <RCTScrollView
2477
- data={
2478
- Array [
2479
- Object {
2480
- "key": 0,
2481
- },
2482
- Object {
2483
- "key": 1,
2484
- },
2485
- Object {
2486
- "key": 2,
2487
- },
2488
- Object {
2489
- "key": 3,
2490
- },
2491
- Object {
2492
- "key": 4,
2493
- },
2494
- Object {
2495
- "key": 5,
2496
- },
2497
- Object {
2498
- "key": 6,
2499
- },
2500
- Object {
2501
- "key": 7,
2502
- },
2503
- Object {
2504
- "key": 8,
2505
- },
2506
- Object {
2507
- "key": 9,
2508
- },
2509
- ]
2510
- }
2511
- disableVirtualization={true}
2512
- getItem={[Function]}
2513
- getItemCount={[Function]}
2514
- getItemLayout={[Function]}
2515
- initialNumToRender={5}
2516
- initialScrollIndex={1}
2517
- maxToRenderPerBatch={10}
2518
- onContentSizeChange={[Function]}
2519
- onLayout={[Function]}
2520
- onMomentumScrollBegin={[Function]}
2521
- onMomentumScrollEnd={[Function]}
2522
- onScroll={[Function]}
2523
- onScrollBeginDrag={[Function]}
2524
- onScrollEndDrag={[Function]}
2525
- renderItem={[Function]}
2526
- scrollEventThrottle={50}
2527
- stickyHeaderIndices={Array []}
2528
- windowSize={1}
2529
- >
2530
- <View>
2531
- <View
2532
- style={null}
2533
- >
2534
- <MockCellItem
2535
- value={0}
2536
- />
2537
- </View>
2538
- <View
2539
- style={null}
2540
- >
2541
- <MockCellItem
2542
- value={1}
2543
- />
2544
- </View>
2545
- <View
2546
- style={null}
2547
- >
2548
- <MockCellItem
2549
- value={2}
2550
- />
2551
- </View>
2552
- <View
2553
- style={null}
2554
- >
2555
- <MockCellItem
2556
- value={3}
2557
- />
2558
- </View>
2559
- <View
2560
- style={null}
2561
- >
2562
- <MockCellItem
2563
- value={4}
2564
- />
2565
- </View>
2566
- <View
2567
- style={null}
2568
- >
2569
- <MockCellItem
2570
- value={5}
2571
- />
2572
- </View>
2573
- <View
2574
- style={null}
2575
- >
2576
- <MockCellItem
2577
- value={6}
2578
- />
2579
- </View>
2580
- <View
2581
- style={null}
2582
- >
2583
- <MockCellItem
2584
- value={7}
2585
- />
2586
- </View>
2587
- <View
2588
- style={null}
2589
- >
2590
- <MockCellItem
2591
- value={8}
2592
- />
2593
- </View>
2594
- <View
2595
- style={null}
2596
- >
2597
- <MockCellItem
2598
- value={9}
2599
- />
2600
- </View>
2601
- </View>
2602
- </RCTScrollView>
2603
- `;
2604
-
2605
- exports[`expands first in viewport to render up to maxToRenderPerBatch on initial render 1`] = `
2606
- <RCTScrollView
2607
- data={
2608
- Array [
2609
- Object {
2610
- "key": 0,
2611
- },
2612
- Object {
2613
- "key": 1,
2614
- },
2615
- Object {
2616
- "key": 2,
2617
- },
2618
- Object {
2619
- "key": 3,
2620
- },
2621
- Object {
2622
- "key": 4,
2623
- },
2624
- Object {
2625
- "key": 5,
2626
- },
2627
- Object {
2628
- "key": 6,
2629
- },
2630
- Object {
2631
- "key": 7,
2632
- },
2633
- Object {
2634
- "key": 8,
2635
- },
2636
- Object {
2637
- "key": 9,
2638
- },
2639
- ]
2640
- }
2641
- getItem={[Function]}
2642
- getItemCount={[Function]}
2643
- getItemLayout={[Function]}
2644
- initialNumToRender={2}
2645
- initialScrollIndex={4}
2646
- maxToRenderPerBatch={10}
2647
- onContentSizeChange={[Function]}
2648
- onLayout={[Function]}
2649
- onMomentumScrollBegin={[Function]}
2650
- onMomentumScrollEnd={[Function]}
2651
- onScroll={[Function]}
2652
- onScrollBeginDrag={[Function]}
2653
- onScrollEndDrag={[Function]}
2654
- renderItem={[Function]}
2655
- scrollEventThrottle={50}
2656
- stickyHeaderIndices={Array []}
2657
- >
2658
- <View>
2659
- <View
2660
- style={null}
2661
- >
2662
- <MockCellItem
2663
- value={0}
2664
- />
2665
- </View>
2666
- <View
2667
- style={null}
2668
- >
2669
- <MockCellItem
2670
- value={1}
2671
- />
2672
- </View>
2673
- <View
2674
- style={null}
2675
- >
2676
- <MockCellItem
2677
- value={2}
2678
- />
2679
- </View>
2680
- <View
2681
- style={null}
2682
- >
2683
- <MockCellItem
2684
- value={3}
2685
- />
2686
- </View>
2687
- <View
2688
- style={null}
2689
- >
2690
- <MockCellItem
2691
- value={4}
2692
- />
2693
- </View>
2694
- <View
2695
- style={null}
2696
- >
2697
- <MockCellItem
2698
- value={5}
2699
- />
2700
- </View>
2701
- <View
2702
- style={
2703
- Object {
2704
- "height": 40,
2705
- }
2706
- }
2707
- />
2708
- </View>
2709
- </RCTScrollView>
2710
- `;
2711
-
2712
- exports[`expands render area by maxToRenderPerBatch on tick 1`] = `
2713
- <RCTScrollView
2714
- data={
2715
- Array [
2716
- Object {
2717
- "key": 0,
2718
- },
2719
- Object {
2720
- "key": 1,
2721
- },
2722
- Object {
2723
- "key": 2,
2724
- },
2725
- Object {
2726
- "key": 3,
2727
- },
2728
- Object {
2729
- "key": 4,
2730
- },
2731
- Object {
2732
- "key": 5,
2733
- },
2734
- Object {
2735
- "key": 6,
2736
- },
2737
- Object {
2738
- "key": 7,
2739
- },
2740
- Object {
2741
- "key": 8,
2742
- },
2743
- Object {
2744
- "key": 9,
2745
- },
2746
- Object {
2747
- "key": 10,
2748
- },
2749
- Object {
2750
- "key": 11,
2751
- },
2752
- Object {
2753
- "key": 12,
2754
- },
2755
- Object {
2756
- "key": 13,
2757
- },
2758
- Object {
2759
- "key": 14,
2760
- },
2761
- Object {
2762
- "key": 15,
2763
- },
2764
- Object {
2765
- "key": 16,
2766
- },
2767
- Object {
2768
- "key": 17,
2769
- },
2770
- Object {
2771
- "key": 18,
2772
- },
2773
- Object {
2774
- "key": 19,
2775
- },
2776
- ]
2777
- }
2778
- getItem={[Function]}
2779
- getItemCount={[Function]}
2780
- getItemLayout={[Function]}
2781
- initialNumToRender={5}
2782
- maxToRenderPerBatch={2}
2783
- onContentSizeChange={[Function]}
2784
- onLayout={[Function]}
2785
- onMomentumScrollBegin={[Function]}
2786
- onMomentumScrollEnd={[Function]}
2787
- onScroll={[Function]}
2788
- onScrollBeginDrag={[Function]}
2789
- onScrollEndDrag={[Function]}
2790
- renderItem={[Function]}
2791
- scrollEventThrottle={50}
2792
- stickyHeaderIndices={Array []}
2793
- >
2794
- <View>
2795
- <View
2796
- style={null}
2797
- >
2798
- <MockCellItem
2799
- value={0}
2800
- />
2801
- </View>
2802
- <View
2803
- style={null}
2804
- >
2805
- <MockCellItem
2806
- value={1}
2807
- />
2808
- </View>
2809
- <View
2810
- style={null}
2811
- >
2812
- <MockCellItem
2813
- value={2}
2814
- />
2815
- </View>
2816
- <View
2817
- style={null}
2818
- >
2819
- <MockCellItem
2820
- value={3}
2821
- />
2822
- </View>
2823
- <View
2824
- style={null}
2825
- >
2826
- <MockCellItem
2827
- value={4}
2828
- />
2829
- </View>
2830
- <View
2831
- style={null}
2832
- >
2833
- <MockCellItem
2834
- value={5}
2835
- />
2836
- </View>
2837
- <View
2838
- style={null}
2839
- >
2840
- <MockCellItem
2841
- value={6}
2842
- />
2843
- </View>
2844
- <View
2845
- style={
2846
- Object {
2847
- "height": 130,
2848
- }
2849
- }
2850
- />
2851
- </View>
2852
- </RCTScrollView>
2853
- `;
2854
-
2855
- exports[`renders a zero-height tail spacer on initial render if getItemLayout not defined 1`] = `
2856
- <RCTScrollView
2857
- data={
2858
- Array [
2859
- Object {
2860
- "key": 0,
2861
- },
2862
- Object {
2863
- "key": 1,
2864
- },
2865
- Object {
2866
- "key": 2,
2867
- },
2868
- Object {
2869
- "key": 3,
2870
- },
2871
- Object {
2872
- "key": 4,
2873
- },
2874
- Object {
2875
- "key": 5,
2876
- },
2877
- Object {
2878
- "key": 6,
2879
- },
2880
- Object {
2881
- "key": 7,
2882
- },
2883
- Object {
2884
- "key": 8,
2885
- },
2886
- Object {
2887
- "key": 9,
2888
- },
2889
- ]
2890
- }
2891
- getItem={[Function]}
2892
- getItemCount={[Function]}
2893
- initialNumToRender={3}
2894
- onContentSizeChange={[Function]}
2895
- onLayout={[Function]}
2896
- onMomentumScrollBegin={[Function]}
2897
- onMomentumScrollEnd={[Function]}
2898
- onScroll={[Function]}
2899
- onScrollBeginDrag={[Function]}
2900
- onScrollEndDrag={[Function]}
2901
- renderItem={[Function]}
2902
- scrollEventThrottle={50}
2903
- stickyHeaderIndices={Array []}
2904
- >
2905
- <View>
2906
- <View
2907
- onLayout={[Function]}
2908
- style={null}
2909
- >
2910
- <MockCellItem
2911
- value={0}
2912
- />
2913
- </View>
2914
- <View
2915
- onLayout={[Function]}
2916
- style={null}
2917
- >
2918
- <MockCellItem
2919
- value={1}
2920
- />
2921
- </View>
2922
- <View
2923
- onLayout={[Function]}
2924
- style={null}
2925
- >
2926
- <MockCellItem
2927
- value={2}
2928
- />
2929
- </View>
2930
- <View
2931
- style={
2932
- Object {
2933
- "height": 0,
2934
- }
2935
- }
2936
- />
2937
- </View>
2938
- </RCTScrollView>
2939
- `;
2940
-
2941
- exports[`renders full tail spacer if all cells measured 1`] = `
2942
- <RCTScrollView
2943
- data={
2944
- Array [
2945
- Object {
2946
- "key": 0,
2947
- },
2948
- Object {
2949
- "key": 1,
2950
- },
2951
- Object {
2952
- "key": 2,
2953
- },
2954
- Object {
2955
- "key": 3,
2956
- },
2957
- Object {
2958
- "key": 4,
2959
- },
2960
- Object {
2961
- "key": 5,
2962
- },
2963
- Object {
2964
- "key": 6,
2965
- },
2966
- Object {
2967
- "key": 7,
2968
- },
2969
- Object {
2970
- "key": 8,
2971
- },
2972
- Object {
2973
- "key": 9,
2974
- },
2975
- ]
2976
- }
2977
- getItem={[Function]}
2978
- getItemCount={[Function]}
2979
- initialNumToRender={3}
2980
- maxToRenderPerBatch={1}
2981
- onContentSizeChange={[Function]}
2982
- onLayout={[Function]}
2983
- onMomentumScrollBegin={[Function]}
2984
- onMomentumScrollEnd={[Function]}
2985
- onScroll={[Function]}
2986
- onScrollBeginDrag={[Function]}
2987
- onScrollEndDrag={[Function]}
2988
- renderItem={[Function]}
2989
- scrollEventThrottle={50}
2990
- stickyHeaderIndices={Array []}
2991
- windowSize={1}
2992
- >
2993
- <View>
2994
- <View
2995
- onLayout={[Function]}
2996
- style={null}
2997
- >
2998
- <MockCellItem
2999
- value={0}
3000
- />
3001
- </View>
3002
- <View
3003
- onLayout={[Function]}
3004
- style={null}
3005
- >
3006
- <MockCellItem
3007
- value={1}
3008
- />
3009
- </View>
3010
- <View
3011
- onLayout={[Function]}
3012
- style={null}
3013
- >
3014
- <MockCellItem
3015
- value={2}
3016
- />
3017
- </View>
3018
- <View
3019
- onLayout={[Function]}
3020
- style={null}
3021
- >
3022
- <MockCellItem
3023
- value={3}
3024
- />
3025
- </View>
3026
- <View
3027
- onLayout={[Function]}
3028
- style={null}
3029
- >
3030
- <MockCellItem
3031
- value={4}
3032
- />
3033
- </View>
3034
- <View
3035
- style={
3036
- Object {
3037
- "height": 50,
3038
- }
3039
- }
3040
- />
3041
- </View>
3042
- </RCTScrollView>
3043
- `;
3044
-
3045
- exports[`renders initialNumToRender cells when virtualization disabled 1`] = `
3046
- <RCTScrollView
3047
- data={
3048
- Array [
3049
- Object {
3050
- "key": 0,
3051
- },
3052
- Object {
3053
- "key": 1,
3054
- },
3055
- Object {
3056
- "key": 2,
3057
- },
3058
- Object {
3059
- "key": 3,
3060
- },
3061
- Object {
3062
- "key": 4,
3063
- },
3064
- Object {
3065
- "key": 5,
3066
- },
3067
- Object {
3068
- "key": 6,
3069
- },
3070
- Object {
3071
- "key": 7,
3072
- },
3073
- Object {
3074
- "key": 8,
3075
- },
3076
- Object {
3077
- "key": 9,
3078
- },
3079
- ]
3080
- }
3081
- disableVirtualization={true}
3082
- getItem={[Function]}
3083
- getItemCount={[Function]}
3084
- getItemLayout={[Function]}
3085
- initialNumToRender={5}
3086
- initialScrollIndex={1}
3087
- onContentSizeChange={[Function]}
3088
- onLayout={[Function]}
3089
- onMomentumScrollBegin={[Function]}
3090
- onMomentumScrollEnd={[Function]}
3091
- onScroll={[Function]}
3092
- onScrollBeginDrag={[Function]}
3093
- onScrollEndDrag={[Function]}
3094
- renderItem={[Function]}
3095
- scrollEventThrottle={50}
3096
- stickyHeaderIndices={Array []}
3097
- >
3098
- <View>
3099
- <View
3100
- style={null}
3101
- >
3102
- <MockCellItem
3103
- value={0}
3104
- />
3105
- </View>
3106
- <View
3107
- style={null}
3108
- >
3109
- <MockCellItem
3110
- value={1}
3111
- />
3112
- </View>
3113
- <View
3114
- style={null}
3115
- >
3116
- <MockCellItem
3117
- value={2}
3118
- />
3119
- </View>
3120
- <View
3121
- style={null}
3122
- >
3123
- <MockCellItem
3124
- value={3}
3125
- />
3126
- </View>
3127
- <View
3128
- style={null}
3129
- >
3130
- <MockCellItem
3131
- value={4}
3132
- />
3133
- </View>
3134
- <View
3135
- style={null}
3136
- >
3137
- <MockCellItem
3138
- value={5}
3139
- />
3140
- </View>
3141
- </View>
3142
- </RCTScrollView>
3143
- `;
3144
-
3145
- exports[`renders items before initialScrollIndex on first batch tick when virtualization disabled 1`] = `
3146
- <RCTScrollView
3147
- data={
3148
- Array [
3149
- Object {
3150
- "key": 0,
3151
- },
3152
- Object {
3153
- "key": 1,
3154
- },
3155
- Object {
3156
- "key": 2,
3157
- },
3158
- Object {
3159
- "key": 3,
3160
- },
3161
- Object {
3162
- "key": 4,
3163
- },
3164
- Object {
3165
- "key": 5,
3166
- },
3167
- Object {
3168
- "key": 6,
3169
- },
3170
- Object {
3171
- "key": 7,
3172
- },
3173
- Object {
3174
- "key": 8,
3175
- },
3176
- Object {
3177
- "key": 9,
3178
- },
3179
- ]
3180
- }
3181
- disableVirtualization={true}
3182
- getItem={[Function]}
3183
- getItemCount={[Function]}
3184
- getItemLayout={[Function]}
3185
- initialNumToRender={1}
3186
- initialScrollIndex={5}
3187
- maxToRenderPerBatch={1}
3188
- onContentSizeChange={[Function]}
3189
- onLayout={[Function]}
3190
- onMomentumScrollBegin={[Function]}
3191
- onMomentumScrollEnd={[Function]}
3192
- onScroll={[Function]}
3193
- onScrollBeginDrag={[Function]}
3194
- onScrollEndDrag={[Function]}
3195
- renderItem={[Function]}
3196
- scrollEventThrottle={50}
3197
- stickyHeaderIndices={Array []}
3198
- >
3199
- <View>
3200
- <View
3201
- style={null}
3202
- >
3203
- <MockCellItem
3204
- value={0}
3205
- />
3206
- </View>
3207
- <View
3208
- style={null}
3209
- >
3210
- <MockCellItem
3211
- value={1}
3212
- />
3213
- </View>
3214
- <View
3215
- style={null}
3216
- >
3217
- <MockCellItem
3218
- value={2}
3219
- />
3220
- </View>
3221
- <View
3222
- style={null}
3223
- >
3224
- <MockCellItem
3225
- value={3}
3226
- />
3227
- </View>
3228
- <View
3229
- style={null}
3230
- >
3231
- <MockCellItem
3232
- value={4}
3233
- />
3234
- </View>
3235
- <View
3236
- style={null}
3237
- >
3238
- <MockCellItem
3239
- value={5}
3240
- />
3241
- </View>
3242
- <View
3243
- style={null}
3244
- >
3245
- <MockCellItem
3246
- value={6}
3247
- />
3248
- </View>
3249
- </View>
3250
- </RCTScrollView>
3251
- `;
3252
-
3253
- exports[`renders no spacers up to initialScrollIndex on first render when virtualization disabled 1`] = `
3254
- <RCTScrollView
3255
- data={
3256
- Array [
3257
- Object {
3258
- "key": 0,
3259
- },
3260
- Object {
3261
- "key": 1,
3262
- },
3263
- Object {
3264
- "key": 2,
3265
- },
3266
- Object {
3267
- "key": 3,
3268
- },
3269
- Object {
3270
- "key": 4,
3271
- },
3272
- Object {
3273
- "key": 5,
3274
- },
3275
- Object {
3276
- "key": 6,
3277
- },
3278
- Object {
3279
- "key": 7,
3280
- },
3281
- Object {
3282
- "key": 8,
3283
- },
3284
- Object {
3285
- "key": 9,
3286
- },
3287
- ]
3288
- }
3289
- disableVirtualization={true}
3290
- getItem={[Function]}
3291
- getItemCount={[Function]}
3292
- getItemLayout={[Function]}
3293
- initialNumToRender={2}
3294
- initialScrollIndex={4}
3295
- maxToRenderPerBatch={1}
3296
- onContentSizeChange={[Function]}
3297
- onLayout={[Function]}
3298
- onMomentumScrollBegin={[Function]}
3299
- onMomentumScrollEnd={[Function]}
3300
- onScroll={[Function]}
3301
- onScrollBeginDrag={[Function]}
3302
- onScrollEndDrag={[Function]}
3303
- renderItem={[Function]}
3304
- scrollEventThrottle={50}
3305
- stickyHeaderIndices={Array []}
3306
- >
3307
- <View>
3308
- <View
3309
- style={null}
3310
- >
3311
- <MockCellItem
3312
- value={4}
3313
- />
3314
- </View>
3315
- <View
3316
- style={null}
3317
- >
3318
- <MockCellItem
3319
- value={5}
3320
- />
3321
- </View>
3322
- </View>
3323
- </RCTScrollView>
3324
- `;
3325
-
3326
- exports[`renders offset cells in initial render when initialScrollIndex set 1`] = `
3327
- <RCTScrollView
3328
- data={
3329
- Array [
3330
- Object {
3331
- "key": 0,
3332
- },
3333
- Object {
3334
- "key": 1,
3335
- },
3336
- Object {
3337
- "key": 2,
3338
- },
3339
- Object {
3340
- "key": 3,
3341
- },
3342
- Object {
3343
- "key": 4,
3344
- },
3345
- Object {
3346
- "key": 5,
3347
- },
3348
- Object {
3349
- "key": 6,
3350
- },
3351
- Object {
3352
- "key": 7,
3353
- },
3354
- Object {
3355
- "key": 8,
3356
- },
3357
- Object {
3358
- "key": 9,
3359
- },
3360
- ]
3361
- }
3362
- getItem={[Function]}
3363
- getItemCount={[Function]}
3364
- getItemLayout={[Function]}
3365
- initialNumToRender={4}
3366
- initialScrollIndex={4}
3367
- onContentSizeChange={[Function]}
3368
- onLayout={[Function]}
3369
- onMomentumScrollBegin={[Function]}
3370
- onMomentumScrollEnd={[Function]}
3371
- onScroll={[Function]}
3372
- onScrollBeginDrag={[Function]}
3373
- onScrollEndDrag={[Function]}
3374
- renderItem={[Function]}
3375
- scrollEventThrottle={50}
3376
- stickyHeaderIndices={Array []}
3377
- >
3378
- <View>
3379
- <View
3380
- style={null}
3381
- >
3382
- <MockCellItem
3383
- value={0}
3384
- />
3385
- </View>
3386
- <View
3387
- style={null}
3388
- >
3389
- <MockCellItem
3390
- value={1}
3391
- />
3392
- </View>
3393
- <View
3394
- style={null}
3395
- >
3396
- <MockCellItem
3397
- value={2}
3398
- />
3399
- </View>
3400
- <View
3401
- style={null}
3402
- >
3403
- <MockCellItem
3404
- value={3}
3405
- />
3406
- </View>
3407
- <View
3408
- style={null}
3409
- >
3410
- <MockCellItem
3411
- value={4}
3412
- />
3413
- </View>
3414
- <View
3415
- style={null}
3416
- >
3417
- <MockCellItem
3418
- value={5}
3419
- />
3420
- </View>
3421
- <View
3422
- style={null}
3423
- >
3424
- <MockCellItem
3425
- value={6}
3426
- />
3427
- </View>
3428
- <View
3429
- style={null}
3430
- >
3431
- <MockCellItem
3432
- value={7}
3433
- />
3434
- </View>
3435
- <View
3436
- style={
3437
- Object {
3438
- "height": 20,
3439
- }
3440
- }
3441
- />
3442
- </View>
3443
- </RCTScrollView>
3444
- `;
3445
-
3446
- exports[`renders tail spacer up to last measured index if getItemLayout not defined 1`] = `
3447
- <RCTScrollView
3448
- data={
3449
- Array [
3450
- Object {
3451
- "key": 0,
3452
- },
3453
- Object {
3454
- "key": 1,
3455
- },
3456
- Object {
3457
- "key": 2,
3458
- },
3459
- Object {
3460
- "key": 3,
3461
- },
3462
- Object {
3463
- "key": 4,
3464
- },
3465
- Object {
3466
- "key": 5,
3467
- },
3468
- Object {
3469
- "key": 6,
3470
- },
3471
- Object {
3472
- "key": 7,
3473
- },
3474
- Object {
3475
- "key": 8,
3476
- },
3477
- Object {
3478
- "key": 9,
3479
- },
3480
- ]
3481
- }
3482
- getItem={[Function]}
3483
- getItemCount={[Function]}
3484
- initialNumToRender={3}
3485
- maxToRenderPerBatch={1}
3486
- onContentSizeChange={[Function]}
3487
- onLayout={[Function]}
3488
- onMomentumScrollBegin={[Function]}
3489
- onMomentumScrollEnd={[Function]}
3490
- onScroll={[Function]}
3491
- onScrollBeginDrag={[Function]}
3492
- onScrollEndDrag={[Function]}
3493
- renderItem={[Function]}
3494
- scrollEventThrottle={50}
3495
- stickyHeaderIndices={Array []}
3496
- windowSize={1}
3497
- >
3498
- <View>
3499
- <View
3500
- onLayout={[Function]}
3501
- style={null}
3502
- >
3503
- <MockCellItem
3504
- value={0}
3505
- />
3506
- </View>
3507
- <View
3508
- onLayout={[Function]}
3509
- style={null}
3510
- >
3511
- <MockCellItem
3512
- value={1}
3513
- />
3514
- </View>
3515
- <View
3516
- onLayout={[Function]}
3517
- style={null}
3518
- >
3519
- <MockCellItem
3520
- value={2}
3521
- />
3522
- </View>
3523
- <View
3524
- onLayout={[Function]}
3525
- style={null}
3526
- >
3527
- <MockCellItem
3528
- value={3}
3529
- />
3530
- </View>
3531
- <View
3532
- onLayout={[Function]}
3533
- style={null}
3534
- >
3535
- <MockCellItem
3536
- value={4}
3537
- />
3538
- </View>
3539
- <View
3540
- style={
3541
- Object {
3542
- "height": 20,
3543
- }
3544
- }
3545
- />
3546
- </View>
3547
- </RCTScrollView>
3548
- `;
3549
-
3550
- exports[`renders tail spacer up to last measured with irregular layout when getItemLayout undefined 1`] = `
3551
- <RCTScrollView
3552
- data={
3553
- Array [
3554
- Object {
3555
- "key": 0,
3556
- },
3557
- Object {
3558
- "key": 1,
3559
- },
3560
- Object {
3561
- "key": 2,
3562
- },
3563
- Object {
3564
- "key": 3,
3565
- },
3566
- Object {
3567
- "key": 4,
3568
- },
3569
- Object {
3570
- "key": 5,
3571
- },
3572
- Object {
3573
- "key": 6,
3574
- },
3575
- Object {
3576
- "key": 7,
3577
- },
3578
- Object {
3579
- "key": 8,
3580
- },
3581
- Object {
3582
- "key": 9,
3583
- },
3584
- ]
3585
- }
3586
- getItem={[Function]}
3587
- getItemCount={[Function]}
3588
- initialNumToRender={3}
3589
- maxToRenderPerBatch={1}
3590
- onContentSizeChange={[Function]}
3591
- onLayout={[Function]}
3592
- onMomentumScrollBegin={[Function]}
3593
- onMomentumScrollEnd={[Function]}
3594
- onScroll={[Function]}
3595
- onScrollBeginDrag={[Function]}
3596
- onScrollEndDrag={[Function]}
3597
- renderItem={[Function]}
3598
- scrollEventThrottle={50}
3599
- stickyHeaderIndices={Array []}
3600
- windowSize={1}
3601
- >
3602
- <View>
3603
- <View
3604
- onLayout={[Function]}
3605
- style={null}
3606
- >
3607
- <MockCellItem
3608
- value={0}
3609
- />
3610
- </View>
3611
- <View
3612
- onLayout={[Function]}
3613
- style={null}
3614
- >
3615
- <MockCellItem
3616
- value={1}
3617
- />
3618
- </View>
3619
- <View
3620
- onLayout={[Function]}
3621
- style={null}
3622
- >
3623
- <MockCellItem
3624
- value={2}
3625
- />
3626
- </View>
3627
- <View
3628
- onLayout={[Function]}
3629
- style={null}
3630
- >
3631
- <MockCellItem
3632
- value={3}
3633
- />
3634
- </View>
3635
- <View
3636
- style={
3637
- Object {
3638
- "height": 18,
3639
- }
3640
- }
3641
- />
3642
- </View>
3643
- </RCTScrollView>
3644
- `;
3645
-
3646
- exports[`renders windowSize derived region at bottom 1`] = `
3647
- <RCTScrollView
3648
- data={
3649
- Array [
3650
- Object {
3651
- "key": 0,
3652
- },
3653
- Object {
3654
- "key": 1,
3655
- },
3656
- Object {
3657
- "key": 2,
3658
- },
3659
- Object {
3660
- "key": 3,
3661
- },
3662
- Object {
3663
- "key": 4,
3664
- },
3665
- Object {
3666
- "key": 5,
3667
- },
3668
- Object {
3669
- "key": 6,
3670
- },
3671
- Object {
3672
- "key": 7,
3673
- },
3674
- Object {
3675
- "key": 8,
3676
- },
3677
- Object {
3678
- "key": 9,
3679
- },
3680
- ]
3681
- }
3682
- getItem={[Function]}
3683
- getItemCount={[Function]}
3684
- getItemLayout={[Function]}
3685
- initialNumToRender={1}
3686
- maxToRenderPerBatch={1}
3687
- onContentSizeChange={[Function]}
3688
- onLayout={[Function]}
3689
- onMomentumScrollBegin={[Function]}
3690
- onMomentumScrollEnd={[Function]}
3691
- onScroll={[Function]}
3692
- onScrollBeginDrag={[Function]}
3693
- onScrollEndDrag={[Function]}
3694
- renderItem={[Function]}
3695
- scrollEventThrottle={50}
3696
- stickyHeaderIndices={Array []}
3697
- windowSize={3}
3698
- >
3699
- <View>
3700
- <View
3701
- style={null}
3702
- >
3703
- <MockCellItem
3704
- value={0}
3705
- />
3706
- </View>
3707
- <View
3708
- style={
3709
- Object {
3710
- "height": 40,
3711
- }
3712
- }
3713
- />
3714
- <View
3715
- style={null}
3716
- >
3717
- <MockCellItem
3718
- value={5}
3719
- />
3720
- </View>
3721
- <View
3722
- style={null}
3723
- >
3724
- <MockCellItem
3725
- value={6}
3726
- />
3727
- </View>
3728
- <View
3729
- style={null}
3730
- >
3731
- <MockCellItem
3732
- value={7}
3733
- />
3734
- </View>
3735
- <View
3736
- style={null}
3737
- >
3738
- <MockCellItem
3739
- value={8}
3740
- />
3741
- </View>
3742
- <View
3743
- style={null}
3744
- >
3745
- <MockCellItem
3746
- value={9}
3747
- />
3748
- </View>
3749
- </View>
3750
- </RCTScrollView>
3751
- `;
3752
-
3753
- exports[`renders windowSize derived region at top 1`] = `
3754
- <RCTScrollView
3755
- data={
3756
- Array [
3757
- Object {
3758
- "key": 0,
3759
- },
3760
- Object {
3761
- "key": 1,
3762
- },
3763
- Object {
3764
- "key": 2,
3765
- },
3766
- Object {
3767
- "key": 3,
3768
- },
3769
- Object {
3770
- "key": 4,
3771
- },
3772
- Object {
3773
- "key": 5,
3774
- },
3775
- Object {
3776
- "key": 6,
3777
- },
3778
- Object {
3779
- "key": 7,
3780
- },
3781
- Object {
3782
- "key": 8,
3783
- },
3784
- Object {
3785
- "key": 9,
3786
- },
3787
- ]
3788
- }
3789
- getItem={[Function]}
3790
- getItemCount={[Function]}
3791
- getItemLayout={[Function]}
3792
- initialNumToRender={1}
3793
- maxToRenderPerBatch={1}
3794
- onContentSizeChange={[Function]}
3795
- onLayout={[Function]}
3796
- onMomentumScrollBegin={[Function]}
3797
- onMomentumScrollEnd={[Function]}
3798
- onScroll={[Function]}
3799
- onScrollBeginDrag={[Function]}
3800
- onScrollEndDrag={[Function]}
3801
- renderItem={[Function]}
3802
- scrollEventThrottle={50}
3803
- stickyHeaderIndices={Array []}
3804
- windowSize={3}
3805
- >
3806
- <View>
3807
- <View
3808
- style={null}
3809
- >
3810
- <MockCellItem
3811
- value={0}
3812
- />
3813
- </View>
3814
- <View
3815
- style={null}
3816
- >
3817
- <MockCellItem
3818
- value={1}
3819
- />
3820
- </View>
3821
- <View
3822
- style={null}
3823
- >
3824
- <MockCellItem
3825
- value={2}
3826
- />
3827
- </View>
3828
- <View
3829
- style={null}
3830
- >
3831
- <MockCellItem
3832
- value={3}
3833
- />
3834
- </View>
3835
- <View
3836
- style={
3837
- Object {
3838
- "height": 60,
3839
- }
3840
- }
3841
- />
3842
- </View>
3843
- </RCTScrollView>
3844
- `;
3845
-
3846
- exports[`renders windowSize derived region in middle 1`] = `
3847
- <RCTScrollView
3848
- data={
3849
- Array [
3850
- Object {
3851
- "key": 0,
3852
- },
3853
- Object {
3854
- "key": 1,
3855
- },
3856
- Object {
3857
- "key": 2,
3858
- },
3859
- Object {
3860
- "key": 3,
3861
- },
3862
- Object {
3863
- "key": 4,
3864
- },
3865
- Object {
3866
- "key": 5,
3867
- },
3868
- Object {
3869
- "key": 6,
3870
- },
3871
- Object {
3872
- "key": 7,
3873
- },
3874
- Object {
3875
- "key": 8,
3876
- },
3877
- Object {
3878
- "key": 9,
3879
- },
3880
- ]
3881
- }
3882
- getItem={[Function]}
3883
- getItemCount={[Function]}
3884
- getItemLayout={[Function]}
3885
- initialNumToRender={1}
3886
- maxToRenderPerBatch={1}
3887
- onContentSizeChange={[Function]}
3888
- onLayout={[Function]}
3889
- onMomentumScrollBegin={[Function]}
3890
- onMomentumScrollEnd={[Function]}
3891
- onScroll={[Function]}
3892
- onScrollBeginDrag={[Function]}
3893
- onScrollEndDrag={[Function]}
3894
- renderItem={[Function]}
3895
- scrollEventThrottle={50}
3896
- stickyHeaderIndices={Array []}
3897
- windowSize={3}
3898
- >
3899
- <View>
3900
- <View
3901
- style={null}
3902
- >
3903
- <MockCellItem
3904
- value={0}
3905
- />
3906
- </View>
3907
- <View
3908
- style={
3909
- Object {
3910
- "height": 10,
3911
- }
3912
- }
3913
- />
3914
- <View
3915
- style={null}
3916
- >
3917
- <MockCellItem
3918
- value={2}
3919
- />
3920
- </View>
3921
- <View
3922
- style={null}
3923
- >
3924
- <MockCellItem
3925
- value={3}
3926
- />
3927
- </View>
3928
- <View
3929
- style={null}
3930
- >
3931
- <MockCellItem
3932
- value={4}
3933
- />
3934
- </View>
3935
- <View
3936
- style={null}
3937
- >
3938
- <MockCellItem
3939
- value={5}
3940
- />
3941
- </View>
3942
- <View
3943
- style={null}
3944
- >
3945
- <MockCellItem
3946
- value={6}
3947
- />
3948
- </View>
3949
- <View
3950
- style={null}
3951
- >
3952
- <MockCellItem
3953
- value={7}
3954
- />
3955
- </View>
3956
- <View
3957
- style={null}
3958
- >
3959
- <MockCellItem
3960
- value={8}
3961
- />
3962
- </View>
3963
- <View
3964
- style={
3965
- Object {
3966
- "height": 10,
3967
- }
3968
- }
3969
- />
3970
- </View>
3971
- </RCTScrollView>
3972
- `;
3973
-
3974
- exports[`renders zero-height tail spacer on batch render if cells not yet measured and getItemLayout not defined 1`] = `
3975
- <RCTScrollView
3976
- data={
3977
- Array [
3978
- Object {
3979
- "key": 0,
3980
- },
3981
- Object {
3982
- "key": 1,
3983
- },
3984
- Object {
3985
- "key": 2,
3986
- },
3987
- Object {
3988
- "key": 3,
3989
- },
3990
- Object {
3991
- "key": 4,
3992
- },
3993
- Object {
3994
- "key": 5,
3995
- },
3996
- Object {
3997
- "key": 6,
3998
- },
3999
- Object {
4000
- "key": 7,
4001
- },
4002
- Object {
4003
- "key": 8,
4004
- },
4005
- Object {
4006
- "key": 9,
4007
- },
4008
- ]
4009
- }
4010
- getItem={[Function]}
4011
- getItemCount={[Function]}
4012
- initialNumToRender={3}
4013
- maxToRenderPerBatch={1}
4014
- onContentSizeChange={[Function]}
4015
- onLayout={[Function]}
4016
- onMomentumScrollBegin={[Function]}
4017
- onMomentumScrollEnd={[Function]}
4018
- onScroll={[Function]}
4019
- onScrollBeginDrag={[Function]}
4020
- onScrollEndDrag={[Function]}
4021
- renderItem={[Function]}
4022
- scrollEventThrottle={50}
4023
- stickyHeaderIndices={Array []}
4024
- windowSize={1}
4025
- >
4026
- <View>
4027
- <View
4028
- onLayout={[Function]}
4029
- style={null}
4030
- >
4031
- <MockCellItem
4032
- value={0}
4033
- />
4034
- </View>
4035
- <View
4036
- onLayout={[Function]}
4037
- style={null}
4038
- >
4039
- <MockCellItem
4040
- value={1}
4041
- />
4042
- </View>
4043
- <View
4044
- onLayout={[Function]}
4045
- style={null}
4046
- >
4047
- <MockCellItem
4048
- value={2}
4049
- />
4050
- </View>
4051
- <View
4052
- style={
4053
- Object {
4054
- "height": 0,
4055
- }
4056
- }
4057
- />
4058
- </View>
4059
- </RCTScrollView>
4060
- `;
4061
-
4062
- exports[`retains batch render region when an item is appended 1`] = `
4063
- <RCTScrollView
4064
- data={
4065
- Array [
4066
- Object {
4067
- "key": 0,
4068
- },
4069
- Object {
4070
- "key": 1,
4071
- },
4072
- Object {
4073
- "key": 2,
4074
- },
4075
- Object {
4076
- "key": 3,
4077
- },
4078
- Object {
4079
- "key": 4,
4080
- },
4081
- Object {
4082
- "key": 5,
4083
- },
4084
- Object {
4085
- "key": 6,
4086
- },
4087
- Object {
4088
- "key": 7,
4089
- },
4090
- Object {
4091
- "key": 8,
4092
- },
4093
- Object {
4094
- "key": 9,
4095
- },
4096
- Object {
4097
- "key": 10,
4098
- },
4099
- ]
4100
- }
4101
- getItem={[Function]}
4102
- getItemCount={[Function]}
4103
- getItemLayout={[Function]}
4104
- initialNumToRender={1}
4105
- maxToRenderPerBatch={1}
4106
- onContentSizeChange={[Function]}
4107
- onLayout={[Function]}
4108
- onMomentumScrollBegin={[Function]}
4109
- onMomentumScrollEnd={[Function]}
4110
- onScroll={[Function]}
4111
- onScrollBeginDrag={[Function]}
4112
- onScrollEndDrag={[Function]}
4113
- renderItem={[Function]}
4114
- scrollEventThrottle={50}
4115
- stickyHeaderIndices={Array []}
4116
- >
4117
- <View>
4118
- <View
4119
- style={null}
4120
- >
4121
- <MockCellItem
4122
- value={0}
4123
- />
4124
- </View>
4125
- <View
4126
- style={null}
4127
- >
4128
- <MockCellItem
4129
- value={1}
4130
- />
4131
- </View>
4132
- <View
4133
- style={null}
4134
- >
4135
- <MockCellItem
4136
- value={2}
4137
- />
4138
- </View>
4139
- <View
4140
- style={null}
4141
- >
4142
- <MockCellItem
4143
- value={3}
4144
- />
4145
- </View>
4146
- <View
4147
- style={null}
4148
- >
4149
- <MockCellItem
4150
- value={4}
4151
- />
4152
- </View>
4153
- <View
4154
- style={null}
4155
- >
4156
- <MockCellItem
4157
- value={5}
4158
- />
4159
- </View>
4160
- <View
4161
- style={null}
4162
- >
4163
- <MockCellItem
4164
- value={6}
4165
- />
4166
- </View>
4167
- <View
4168
- style={null}
4169
- >
4170
- <MockCellItem
4171
- value={7}
4172
- />
4173
- </View>
4174
- <View
4175
- style={null}
4176
- >
4177
- <MockCellItem
4178
- value={8}
4179
- />
4180
- </View>
4181
- <View
4182
- style={null}
4183
- >
4184
- <MockCellItem
4185
- value={9}
4186
- />
4187
- </View>
4188
- <View
4189
- style={
4190
- Object {
4191
- "height": 10,
4192
- }
4193
- }
4194
- />
4195
- </View>
4196
- </RCTScrollView>
4197
- `;
4198
-
4199
- exports[`retains initial render region when an item is appended 1`] = `
4200
- <RCTScrollView
4201
- data={
4202
- Array [
4203
- Object {
4204
- "key": 0,
4205
- },
4206
- Object {
4207
- "key": 1,
4208
- },
4209
- Object {
4210
- "key": 2,
4211
- },
4212
- Object {
4213
- "key": 3,
4214
- },
4215
- Object {
4216
- "key": 4,
4217
- },
4218
- Object {
4219
- "key": 5,
4220
- },
4221
- Object {
4222
- "key": 6,
4223
- },
4224
- Object {
4225
- "key": 7,
4226
- },
4227
- Object {
4228
- "key": 8,
4229
- },
4230
- Object {
4231
- "key": 9,
4232
- },
4233
- Object {
4234
- "key": 10,
4235
- },
4236
- ]
4237
- }
4238
- getItem={[Function]}
4239
- getItemCount={[Function]}
4240
- getItemLayout={[Function]}
4241
- initialNumToRender={3}
4242
- onContentSizeChange={[Function]}
4243
- onLayout={[Function]}
4244
- onMomentumScrollBegin={[Function]}
4245
- onMomentumScrollEnd={[Function]}
4246
- onScroll={[Function]}
4247
- onScrollBeginDrag={[Function]}
4248
- onScrollEndDrag={[Function]}
4249
- renderItem={[Function]}
4250
- scrollEventThrottle={50}
4251
- stickyHeaderIndices={Array []}
4252
- >
4253
- <View>
4254
- <View
4255
- style={null}
4256
- >
4257
- <MockCellItem
4258
- value={0}
4259
- />
4260
- </View>
4261
- <View
4262
- style={null}
4263
- >
4264
- <MockCellItem
4265
- value={1}
4266
- />
4267
- </View>
4268
- <View
4269
- style={null}
4270
- >
4271
- <MockCellItem
4272
- value={2}
4273
- />
4274
- </View>
4275
- <View
4276
- style={
4277
- Object {
4278
- "height": 80,
4279
- }
4280
- }
4281
- />
4282
- </View>
4283
- </RCTScrollView>
4284
- `;
4285
-
4286
- exports[`retains intitial render if initialScrollIndex == 0 1`] = `
4287
- <RCTScrollView
4288
- data={
4289
- Array [
4290
- Object {
4291
- "key": 0,
4292
- },
4293
- Object {
4294
- "key": 1,
4295
- },
4296
- Object {
4297
- "key": 2,
4298
- },
4299
- Object {
4300
- "key": 3,
4301
- },
4302
- Object {
4303
- "key": 4,
4304
- },
4305
- Object {
4306
- "key": 5,
4307
- },
4308
- Object {
4309
- "key": 6,
4310
- },
4311
- Object {
4312
- "key": 7,
4313
- },
4314
- Object {
4315
- "key": 8,
4316
- },
4317
- Object {
4318
- "key": 9,
4319
- },
4320
- Object {
4321
- "key": 10,
4322
- },
4323
- Object {
4324
- "key": 11,
4325
- },
4326
- Object {
4327
- "key": 12,
4328
- },
4329
- Object {
4330
- "key": 13,
4331
- },
4332
- Object {
4333
- "key": 14,
4334
- },
4335
- Object {
4336
- "key": 15,
4337
- },
4338
- Object {
4339
- "key": 16,
4340
- },
4341
- Object {
4342
- "key": 17,
4343
- },
4344
- Object {
4345
- "key": 18,
4346
- },
4347
- Object {
4348
- "key": 19,
4349
- },
4350
- ]
4351
- }
4352
- getItem={[Function]}
4353
- getItemCount={[Function]}
4354
- getItemLayout={[Function]}
4355
- initialNumToRender={5}
4356
- initialScrollIndex={0}
4357
- onContentSizeChange={[Function]}
4358
- onLayout={[Function]}
4359
- onMomentumScrollBegin={[Function]}
4360
- onMomentumScrollEnd={[Function]}
4361
- onScroll={[Function]}
4362
- onScrollBeginDrag={[Function]}
4363
- onScrollEndDrag={[Function]}
4364
- renderItem={[Function]}
4365
- scrollEventThrottle={50}
4366
- stickyHeaderIndices={Array []}
4367
- windowSize={1}
4368
- >
4369
- <View>
4370
- <View
4371
- style={null}
4372
- >
4373
- <MockCellItem
4374
- value={0}
4375
- />
4376
- </View>
4377
- <View
4378
- style={null}
4379
- >
4380
- <MockCellItem
4381
- value={1}
4382
- />
4383
- </View>
4384
- <View
4385
- style={null}
4386
- >
4387
- <MockCellItem
4388
- value={2}
4389
- />
4390
- </View>
4391
- <View
4392
- style={null}
4393
- >
4394
- <MockCellItem
4395
- value={3}
4396
- />
4397
- </View>
4398
- <View
4399
- style={null}
4400
- >
4401
- <MockCellItem
4402
- value={4}
4403
- />
4404
- </View>
4405
- <View
4406
- style={
4407
- Object {
4408
- "height": 40,
4409
- }
4410
- }
4411
- />
4412
- <View
4413
- style={null}
4414
- >
4415
- <MockCellItem
4416
- value={9}
4417
- />
4418
- </View>
4419
- <View
4420
- style={null}
4421
- >
4422
- <MockCellItem
4423
- value={10}
4424
- />
4425
- </View>
4426
- <View
4427
- style={null}
4428
- >
4429
- <MockCellItem
4430
- value={11}
4431
- />
4432
- </View>
4433
- <View
4434
- style={null}
4435
- >
4436
- <MockCellItem
4437
- value={12}
4438
- />
4439
- </View>
4440
- <View
4441
- style={null}
4442
- >
4443
- <MockCellItem
4444
- value={13}
4445
- />
4446
- </View>
4447
- <View
4448
- style={null}
4449
- >
4450
- <MockCellItem
4451
- value={14}
4452
- />
4453
- </View>
4454
- <View
4455
- style={null}
4456
- >
4457
- <MockCellItem
4458
- value={15}
4459
- />
4460
- </View>
4461
- <View
4462
- style={null}
4463
- >
4464
- <MockCellItem
4465
- value={16}
4466
- />
4467
- </View>
4468
- <View
4469
- style={null}
4470
- >
4471
- <MockCellItem
4472
- value={17}
4473
- />
4474
- </View>
4475
- <View
4476
- style={null}
4477
- >
4478
- <MockCellItem
4479
- value={18}
4480
- />
4481
- </View>
4482
- <View
4483
- style={null}
4484
- >
4485
- <MockCellItem
4486
- value={19}
4487
- />
4488
- </View>
4489
- </View>
4490
- </RCTScrollView>
4491
- `;
4492
-
4493
- exports[`unmounts sticky headers moved below viewport 1`] = `
4494
- <RCTScrollView
4495
- data={
4496
- Array [
4497
- Object {
4498
- "key": 0,
4499
- "sticky": true,
4500
- },
4501
- Object {
4502
- "key": 1,
4503
- },
4504
- Object {
4505
- "key": 2,
4506
- },
4507
- Object {
4508
- "key": 3,
4509
- "sticky": true,
4510
- },
4511
- Object {
4512
- "key": 4,
4513
- },
4514
- Object {
4515
- "key": 5,
4516
- },
4517
- Object {
4518
- "key": 6,
4519
- "sticky": true,
4520
- },
4521
- Object {
4522
- "key": 7,
4523
- },
4524
- Object {
4525
- "key": 8,
4526
- },
4527
- Object {
4528
- "key": 9,
4529
- "sticky": true,
4530
- },
4531
- Object {
4532
- "key": 10,
4533
- },
4534
- Object {
4535
- "key": 11,
4536
- },
4537
- Object {
4538
- "key": 12,
4539
- "sticky": true,
4540
- },
4541
- Object {
4542
- "key": 13,
4543
- },
4544
- Object {
4545
- "key": 14,
4546
- },
4547
- Object {
4548
- "key": 15,
4549
- "sticky": true,
4550
- },
4551
- Object {
4552
- "key": 16,
4553
- },
4554
- Object {
4555
- "key": 17,
4556
- },
4557
- Object {
4558
- "key": 18,
4559
- "sticky": true,
4560
- },
4561
- Object {
4562
- "key": 19,
4563
- },
4564
- ]
4565
- }
4566
- getItem={[Function]}
4567
- getItemCount={[Function]}
4568
- getItemLayout={[Function]}
4569
- initialNumToRender={1}
4570
- onContentSizeChange={[Function]}
4571
- onLayout={[Function]}
4572
- onMomentumScrollBegin={[Function]}
4573
- onMomentumScrollEnd={[Function]}
4574
- onScroll={[Function]}
4575
- onScrollBeginDrag={[Function]}
4576
- onScrollEndDrag={[Function]}
4577
- renderItem={[Function]}
4578
- scrollEventThrottle={50}
4579
- stickyHeaderIndices={
4580
- Array [
4581
- 0,
4582
- 3,
4583
- ]
4584
- }
4585
- windowSize={1}
4586
- >
4587
- <View>
4588
- <View
4589
- style={null}
4590
- >
4591
- <MockCellItem
4592
- sticky={true}
4593
- value={0}
4594
- />
4595
- </View>
4596
- <View
4597
- style={null}
4598
- >
4599
- <MockCellItem
4600
- value={1}
4601
- />
4602
- </View>
4603
- <View
4604
- style={null}
4605
- >
4606
- <MockCellItem
4607
- value={2}
4608
- />
4609
- </View>
4610
- <View
4611
- style={null}
4612
- >
4613
- <MockCellItem
4614
- sticky={true}
4615
- value={3}
4616
- />
4617
- </View>
4618
- <View
4619
- style={null}
4620
- >
4621
- <MockCellItem
4622
- value={4}
4623
- />
4624
- </View>
4625
- <View
4626
- style={
4627
- Object {
4628
- "height": 150,
4629
- }
4630
- }
4631
- />
4632
- </View>
4633
- </RCTScrollView>
4634
- `;