@office-iss/react-native-win32 0.68.0 → 0.69.0-preview.3
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.
- package/.eslintrc.js +1 -0
- package/.flowconfig +1 -3
- package/CHANGELOG.json +386 -32
- package/CHANGELOG.md +166 -19
- package/IntegrationTests/BUCK +4 -1
- package/Libraries/ActionSheetIOS/ActionSheetIOS.js +7 -0
- package/Libraries/ActionSheetIOS/NativeActionSheetManager.js +1 -0
- package/Libraries/Alert/Alert.win32.js +1 -1
- package/Libraries/Animated/AnimatedImplementation.js +1 -1
- package/Libraries/Animated/NativeAnimatedHelper.js +55 -9
- package/Libraries/Animated/NativeAnimatedModule.js +1 -0
- package/Libraries/Animated/NativeAnimatedTurboModule.js +1 -0
- package/Libraries/Animated/animations/TimingAnimation.js +6 -11
- package/Libraries/Animated/createAnimatedComponent.js +2 -2
- package/Libraries/Animated/nodes/AnimatedColor.js +95 -29
- package/Libraries/Animated/nodes/AnimatedInterpolation.js +19 -22
- package/Libraries/Animated/nodes/AnimatedNode.js +2 -2
- package/Libraries/Animated/nodes/AnimatedValue.js +1 -1
- package/Libraries/AppState/AppState.js +1 -1
- package/Libraries/Blob/URL.js +7 -1
- package/Libraries/Components/Button.js +3 -0
- package/Libraries/Components/DatePickerAndroid/NativeDatePickerAndroid.js +5 -0
- package/Libraries/Components/Pressable/Pressable.js +3 -3
- package/Libraries/Components/Pressable/Pressable.win32.js +3 -3
- package/Libraries/Components/ScrollView/AndroidHorizontalScrollViewNativeComponent.js +47 -38
- package/Libraries/Components/ScrollView/ScrollContentViewNativeComponent.js +15 -7
- package/Libraries/Components/ScrollView/ScrollView.js +1 -1
- package/Libraries/Components/ScrollView/ScrollViewNativeComponent.js +16 -3
- package/Libraries/Components/ScrollView/ScrollViewStickyHeader.js +3 -1
- package/Libraries/Components/Slider/Slider.js +0 -2
- package/Libraries/Components/Slider/SliderNativeComponent.js +0 -1
- package/Libraries/Components/StatusBar/StatusBar.js +6 -1
- package/Libraries/Components/Switch/Switch.js +11 -1
- package/Libraries/Components/TextInput/AndroidTextInputNativeComponent.js +114 -109
- package/Libraries/Components/TextInput/RCTMultilineTextInputNativeComponent.js +17 -9
- package/Libraries/Components/TextInput/RCTSingelineTextInputNativeComponent.js +13 -5
- package/Libraries/Components/TextInput/RCTTextInputViewConfig.js +10 -0
- package/Libraries/Components/TextInput/TextInput.js +1 -8
- package/Libraries/Components/TextInput/TextInputState.js +10 -2
- package/Libraries/Components/TextInput/TextInputState.win32.js +10 -2
- package/Libraries/Components/Touchable/Tests/TouchableWin32Test.js.map +1 -1
- package/Libraries/Components/Touchable/TouchableBounce.js +1 -0
- package/Libraries/Components/Touchable/TouchableHighlight.js +1 -0
- package/Libraries/Components/Touchable/TouchableNativeFeedback.js +1 -0
- package/Libraries/Components/Touchable/TouchableOpacity.js +7 -1
- package/Libraries/Components/Touchable/TouchableWin32.Props.d.ts +3 -1
- package/Libraries/Components/Touchable/TouchableWin32.Props.js.map +1 -1
- package/Libraries/Components/Touchable/TouchableWithoutFeedback.js +2 -0
- package/Libraries/Components/View/ReactNativeViewAttributes.js +1 -0
- package/Libraries/Components/View/ReactNativeViewAttributes.win32.js +1 -0
- package/Libraries/Components/View/View.win32.js +33 -1
- package/Libraries/Components/View/ViewNativeComponent.js +68 -8
- package/Libraries/Components/View/ViewPropTypes.js +36 -4
- package/Libraries/Components/View/ViewPropTypes.win32.js +36 -4
- package/Libraries/Components/View/ViewWin32.Props.d.ts +1 -1
- package/Libraries/Components/View/ViewWin32.Props.js.map +1 -1
- package/Libraries/Core/Devtools/parseHermesStack.js +1 -1
- package/Libraries/Core/ExceptionsManager.js +1 -1
- package/Libraries/Core/RawEventEmitter.js +38 -0
- package/Libraries/Core/ReactNativeVersion.js +2 -2
- package/Libraries/Core/polyfillPromise.js +32 -0
- package/Libraries/Core/setUpReactDevTools.js +3 -2
- package/Libraries/EventEmitter/NativeEventEmitter.js +3 -3
- package/Libraries/EventEmitter/RCTDeviceEventEmitter.js +2 -1
- package/Libraries/EventEmitter/__mocks__/NativeEventEmitter.js +3 -3
- package/Libraries/Events/CustomEvent.js +32 -0
- package/Libraries/Events/EventPolyfill.js +239 -0
- package/Libraries/Image/Image.android.js +0 -6
- package/Libraries/Image/Image.ios.js +0 -6
- package/Libraries/Image/Image.win32.js +2 -8
- package/Libraries/Image/ImageViewNativeComponent.js +18 -3
- package/Libraries/Image/TextInlineImageNativeComponent.js +23 -15
- package/Libraries/Image/resolveAssetSource.win32.js +1 -1
- package/Libraries/Inspector/Inspector.js +2 -4
- package/Libraries/Inspector/Inspector.win32.js +7 -9
- package/Libraries/Interaction/BridgeSpyStallHandler.js +4 -3
- package/Libraries/Interaction/InteractionManager.js +1 -12
- package/Libraries/Interaction/TaskQueue.js +5 -4
- package/Libraries/LayoutAnimation/LayoutAnimation.js +13 -0
- package/Libraries/Linking/Linking.js +1 -1
- package/Libraries/Lists/FlatList.js +27 -6
- package/Libraries/Lists/VirtualizedList.js +71 -55
- package/Libraries/Lists/VirtualizedListContext.js +7 -3
- package/Libraries/Lists/VirtualizedSectionList.js +2 -2
- package/Libraries/Lists/__tests__/{FillRateHelper-test.windows.js → FillRateHelper-test.js} +2 -2
- package/Libraries/Lists/__tests__/{FlatList-test.windows.js → FlatList-test.js} +2 -2
- package/Libraries/Lists/__tests__/{SectionList-test.windows.js → SectionList-test.js} +14 -14
- package/Libraries/Lists/__tests__/{VirtualizeUtils-test.windows.js → VirtualizeUtils-test.js} +3 -3
- package/Libraries/Lists/__tests__/{VirtualizedList-test.windows.js → VirtualizedList-test.js} +92 -43
- package/Libraries/Lists/__tests__/{VirtualizedSectionList-test.windows.js → VirtualizedSectionList-test.js} +16 -14
- package/Libraries/LogBox/Data/LogBoxData.js +2 -2
- package/Libraries/LogBox/Data/LogBoxLog.js +1 -1
- package/Libraries/LogBox/Data/LogBoxSymbolication.js +1 -1
- package/Libraries/LogBox/Data/parseLogBoxLog.js +1 -1
- package/Libraries/LogBox/LogBox.js +2 -21
- package/Libraries/LogBox/UI/LogBoxInspectorFooter.js +1 -0
- package/Libraries/LogBox/UI/LogBoxInspectorHeader.js +2 -1
- package/Libraries/NativeComponent/BaseViewConfig.android.js +295 -0
- package/Libraries/NativeComponent/BaseViewConfig.ios.js +333 -0
- package/Libraries/NativeComponent/BaseViewConfig.win32.js +334 -0
- package/Libraries/NativeComponent/NativeComponentRegistry.js +0 -2
- package/Libraries/NativeComponent/PlatformBaseViewConfig.js +24 -0
- package/Libraries/NativeComponent/StaticViewConfigValidator.js +7 -42
- package/Libraries/NativeComponent/ViewConfig.js +4 -4
- package/Libraries/NativeComponent/ViewConfigIgnore.js +54 -0
- package/Libraries/Network/FormData.js +7 -1
- package/Libraries/Network/RCTNetworking.win32.js +1 -1
- package/Libraries/Pressability/Pressability.js +115 -46
- package/Libraries/Pressability/Pressability.win32.js +174 -69
- package/Libraries/Pressability/PressabilityDebug.js +5 -9
- package/Libraries/PushNotificationIOS/NativePushNotificationManagerIOS.js +1 -0
- package/Libraries/ReactNative/AppContainer.js +1 -1
- package/Libraries/ReactNative/{DummyUIManager.js → BridgelessUIManager.js} +62 -40
- package/Libraries/ReactNative/PaperUIManager.win32.js +5 -5
- package/Libraries/ReactNative/ReactNativeFeatureFlags.js +39 -0
- package/Libraries/ReactNative/UIManager.js +2 -3
- package/Libraries/ReactNative/renderApplication.js +4 -0
- package/Libraries/ReactPrivate/ReactNativePrivateInterface.js +8 -0
- package/Libraries/Renderer/implementations/ReactFabric-dev.js +5908 -4906
- package/Libraries/Renderer/implementations/ReactFabric-prod.js +2100 -1918
- package/Libraries/Renderer/implementations/ReactFabric-profiling.js +2567 -2352
- package/Libraries/Renderer/implementations/ReactNativeRenderer-dev.js +5610 -4844
- package/Libraries/Renderer/implementations/ReactNativeRenderer-prod.js +1710 -1556
- package/Libraries/Renderer/implementations/ReactNativeRenderer-profiling.js +1830 -1639
- package/Libraries/Renderer/shims/ReactNativeTypes.js +2 -1
- package/Libraries/Renderer/shims/ReactNativeViewConfigRegistry.js +2 -1
- package/Libraries/StyleSheet/EdgeInsetsPropType.js +4 -1
- package/Libraries/StyleSheet/StyleSheetTypes.js +59 -66
- package/Libraries/StyleSheet/normalizeColor.js +1 -1
- package/Libraries/StyleSheet/private/_StyleSheetTypesOverrides.js +15 -0
- package/Libraries/StyleSheet/private/_TransformStyle.js +53 -0
- package/Libraries/Text/Text.js +13 -7
- package/Libraries/Text/TextNativeComponent.js +2 -0
- package/Libraries/Text/TextNativeComponent.win32.js +2 -0
- package/Libraries/Text/TextProps.js +10 -0
- package/Libraries/Types/CoreEventTypes.js +13 -1
- package/Libraries/Types/CoreEventTypes.win32.js +26 -1
- package/Libraries/Utilities/Appearance.js +0 -8
- package/Libraries/Utilities/HMRClient.js +1 -1
- package/Libraries/Utilities/ReactNativeTestTools.js +1 -0
- package/Libraries/Utilities/codegenNativeComponent.js +16 -6
- package/Libraries/Utilities/stringifySafe.js +4 -1
- package/Libraries/Utilities/useColorScheme.js +9 -15
- package/Libraries/Utilities/verifyComponentAttributeEquivalence.js +3 -3
- package/Libraries/WebSocket/WebSocket.js +1 -1
- package/Libraries/vendor/emitter/_EmitterSubscription.js +1 -1
- package/Libraries/vendor/emitter/_EventEmitter.js +1 -1
- package/Libraries/vendor/emitter/_EventSubscription.js +1 -1
- package/flow/{use-subscription.js → use-sync-external-store.js} +4 -4
- package/index.js +30 -25
- package/index.win32.js +30 -25
- package/jest/preprocessor.js +24 -107
- package/jest/preprocessor_DO_NOT_USE.js +122 -0
- package/metro.config.js +3 -47
- package/overrides.json +39 -46
- package/package.json +32 -29
- package/rntypes/index.d.ts +19 -7
- package/src/Libraries/Components/Touchable/Tests/TouchableWin32Test.tsx +1 -1
- package/src/Libraries/Components/Touchable/TouchableWin32.Props.tsx +3 -1
- package/src/Libraries/Components/View/ViewWin32.Props.ts +1 -0
- package/src/Libraries/Lists/__tests__/__snapshots__/FlatList-test.js.snap +427 -0
- package/src/Libraries/Lists/__tests__/__snapshots__/SectionList-test.js.snap +391 -0
- package/src/Libraries/Lists/__tests__/__snapshots__/VirtualizeUtils-test.js.snap +3 -0
- package/src/Libraries/Lists/__tests__/__snapshots__/VirtualizedList-test.js.snap +4565 -0
- package/src/Libraries/Lists/__tests__/__snapshots__/VirtualizedSectionList-test.js.snap +1153 -0
- package/src/rntypes/index.d.ts +19 -7
- package/typings-index.js +5 -1
- package/typings-index.js.map +1 -1
- package/Libraries/Components/SegmentedControlIOS/RCTSegmentedControlNativeComponent.js +0 -44
- package/Libraries/Components/SegmentedControlIOS/SegmentedControlIOS.android.js +0 -45
- package/Libraries/Components/SegmentedControlIOS/SegmentedControlIOS.ios.js +0 -123
- package/Libraries/Components/SegmentedControlIOS/SegmentedControlIOS.js +0 -45
- package/Libraries/Components/View/ReactNativeViewViewConfig.js +0 -360
- package/Libraries/Components/View/ReactNativeViewViewConfig.win32.js +0 -401
- package/Libraries/Components/View/ReactNativeViewViewConfigAndroid.js +0 -83
- package/Libraries/ReactNative/UIManagerInjection.js +0 -15
- package/Libraries/Renderer/implementations/ReactFabric-dev.fb.js +0 -24527
- package/Libraries/Renderer/implementations/ReactFabric-prod.fb.js +0 -8309
- package/Libraries/Renderer/implementations/ReactFabric-profiling.fb.js +0 -8961
- package/Libraries/Renderer/implementations/ReactNativeRenderer-dev.fb.js +0 -24948
- package/Libraries/Renderer/implementations/ReactNativeRenderer-prod.fb.js +0 -8400
- package/Libraries/Renderer/implementations/ReactNativeRenderer-profiling.fb.js +0 -9049
- package/flow/Promise.js +0 -47
|
@@ -0,0 +1,427 @@
|
|
|
1
|
+
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
|
+
|
|
3
|
+
exports[`FlatList renders all the bells and whistles 1`] = `
|
|
4
|
+
<RCTScrollView
|
|
5
|
+
ItemSeparatorComponent={[Function]}
|
|
6
|
+
ListEmptyComponent={[Function]}
|
|
7
|
+
ListFooterComponent={[Function]}
|
|
8
|
+
ListHeaderComponent={[Function]}
|
|
9
|
+
data={
|
|
10
|
+
Array [
|
|
11
|
+
Object {
|
|
12
|
+
"id": "0",
|
|
13
|
+
},
|
|
14
|
+
Object {
|
|
15
|
+
"id": "1",
|
|
16
|
+
},
|
|
17
|
+
Object {
|
|
18
|
+
"id": "2",
|
|
19
|
+
},
|
|
20
|
+
Object {
|
|
21
|
+
"id": "3",
|
|
22
|
+
},
|
|
23
|
+
Object {
|
|
24
|
+
"id": "4",
|
|
25
|
+
},
|
|
26
|
+
]
|
|
27
|
+
}
|
|
28
|
+
getItem={[Function]}
|
|
29
|
+
getItemCount={[Function]}
|
|
30
|
+
getItemLayout={[Function]}
|
|
31
|
+
keyExtractor={[Function]}
|
|
32
|
+
onContentSizeChange={[Function]}
|
|
33
|
+
onLayout={[Function]}
|
|
34
|
+
onMomentumScrollBegin={[Function]}
|
|
35
|
+
onMomentumScrollEnd={[Function]}
|
|
36
|
+
onRefresh={[MockFunction]}
|
|
37
|
+
onScroll={[Function]}
|
|
38
|
+
onScrollBeginDrag={[Function]}
|
|
39
|
+
onScrollEndDrag={[Function]}
|
|
40
|
+
refreshControl={
|
|
41
|
+
<RefreshControlMock
|
|
42
|
+
onRefresh={[MockFunction]}
|
|
43
|
+
refreshing={false}
|
|
44
|
+
/>
|
|
45
|
+
}
|
|
46
|
+
refreshing={false}
|
|
47
|
+
removeClippedSubviews={false}
|
|
48
|
+
renderItem={[Function]}
|
|
49
|
+
scrollEventThrottle={50}
|
|
50
|
+
stickyHeaderIndices={Array []}
|
|
51
|
+
viewabilityConfigCallbackPairs={Array []}
|
|
52
|
+
>
|
|
53
|
+
<RCTRefreshControl />
|
|
54
|
+
<View>
|
|
55
|
+
<View
|
|
56
|
+
onLayout={[Function]}
|
|
57
|
+
>
|
|
58
|
+
<header />
|
|
59
|
+
</View>
|
|
60
|
+
<View
|
|
61
|
+
style={null}
|
|
62
|
+
>
|
|
63
|
+
<View
|
|
64
|
+
style={
|
|
65
|
+
Object {
|
|
66
|
+
"flexDirection": "row",
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
>
|
|
70
|
+
<item
|
|
71
|
+
value="0"
|
|
72
|
+
/>
|
|
73
|
+
<item
|
|
74
|
+
value="1"
|
|
75
|
+
/>
|
|
76
|
+
</View>
|
|
77
|
+
<separator />
|
|
78
|
+
</View>
|
|
79
|
+
<View
|
|
80
|
+
style={null}
|
|
81
|
+
>
|
|
82
|
+
<View
|
|
83
|
+
style={
|
|
84
|
+
Object {
|
|
85
|
+
"flexDirection": "row",
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
>
|
|
89
|
+
<item
|
|
90
|
+
value="2"
|
|
91
|
+
/>
|
|
92
|
+
<item
|
|
93
|
+
value="3"
|
|
94
|
+
/>
|
|
95
|
+
</View>
|
|
96
|
+
<separator />
|
|
97
|
+
</View>
|
|
98
|
+
<View
|
|
99
|
+
style={null}
|
|
100
|
+
>
|
|
101
|
+
<View
|
|
102
|
+
style={
|
|
103
|
+
Object {
|
|
104
|
+
"flexDirection": "row",
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
>
|
|
108
|
+
<item
|
|
109
|
+
value="4"
|
|
110
|
+
/>
|
|
111
|
+
</View>
|
|
112
|
+
</View>
|
|
113
|
+
<View
|
|
114
|
+
onLayout={[Function]}
|
|
115
|
+
>
|
|
116
|
+
<footer />
|
|
117
|
+
</View>
|
|
118
|
+
</View>
|
|
119
|
+
</RCTScrollView>
|
|
120
|
+
`;
|
|
121
|
+
|
|
122
|
+
exports[`FlatList renders empty list 1`] = `
|
|
123
|
+
<RCTScrollView
|
|
124
|
+
data={Array []}
|
|
125
|
+
getItem={[Function]}
|
|
126
|
+
getItemCount={[Function]}
|
|
127
|
+
keyExtractor={[Function]}
|
|
128
|
+
onContentSizeChange={[Function]}
|
|
129
|
+
onLayout={[Function]}
|
|
130
|
+
onMomentumScrollBegin={[Function]}
|
|
131
|
+
onMomentumScrollEnd={[Function]}
|
|
132
|
+
onScroll={[Function]}
|
|
133
|
+
onScrollBeginDrag={[Function]}
|
|
134
|
+
onScrollEndDrag={[Function]}
|
|
135
|
+
removeClippedSubviews={false}
|
|
136
|
+
renderItem={[Function]}
|
|
137
|
+
scrollEventThrottle={50}
|
|
138
|
+
stickyHeaderIndices={Array []}
|
|
139
|
+
viewabilityConfigCallbackPairs={Array []}
|
|
140
|
+
>
|
|
141
|
+
<View />
|
|
142
|
+
</RCTScrollView>
|
|
143
|
+
`;
|
|
144
|
+
|
|
145
|
+
exports[`FlatList renders null list 1`] = `
|
|
146
|
+
<RCTScrollView
|
|
147
|
+
getItem={[Function]}
|
|
148
|
+
getItemCount={[Function]}
|
|
149
|
+
keyExtractor={[Function]}
|
|
150
|
+
onContentSizeChange={[Function]}
|
|
151
|
+
onLayout={[Function]}
|
|
152
|
+
onMomentumScrollBegin={[Function]}
|
|
153
|
+
onMomentumScrollEnd={[Function]}
|
|
154
|
+
onScroll={[Function]}
|
|
155
|
+
onScrollBeginDrag={[Function]}
|
|
156
|
+
onScrollEndDrag={[Function]}
|
|
157
|
+
removeClippedSubviews={false}
|
|
158
|
+
renderItem={[Function]}
|
|
159
|
+
scrollEventThrottle={50}
|
|
160
|
+
stickyHeaderIndices={Array []}
|
|
161
|
+
viewabilityConfigCallbackPairs={Array []}
|
|
162
|
+
>
|
|
163
|
+
<View />
|
|
164
|
+
</RCTScrollView>
|
|
165
|
+
`;
|
|
166
|
+
|
|
167
|
+
exports[`FlatList renders simple list (multiple columns) 1`] = `
|
|
168
|
+
<RCTScrollView
|
|
169
|
+
data={
|
|
170
|
+
Array [
|
|
171
|
+
Object {
|
|
172
|
+
"key": "i1",
|
|
173
|
+
},
|
|
174
|
+
Object {
|
|
175
|
+
"key": "i2",
|
|
176
|
+
},
|
|
177
|
+
Object {
|
|
178
|
+
"key": "i3",
|
|
179
|
+
},
|
|
180
|
+
]
|
|
181
|
+
}
|
|
182
|
+
getItem={[Function]}
|
|
183
|
+
getItemCount={[Function]}
|
|
184
|
+
keyExtractor={[Function]}
|
|
185
|
+
onContentSizeChange={[Function]}
|
|
186
|
+
onLayout={[Function]}
|
|
187
|
+
onMomentumScrollBegin={[Function]}
|
|
188
|
+
onMomentumScrollEnd={[Function]}
|
|
189
|
+
onScroll={[Function]}
|
|
190
|
+
onScrollBeginDrag={[Function]}
|
|
191
|
+
onScrollEndDrag={[Function]}
|
|
192
|
+
removeClippedSubviews={false}
|
|
193
|
+
renderItem={[Function]}
|
|
194
|
+
scrollEventThrottle={50}
|
|
195
|
+
stickyHeaderIndices={Array []}
|
|
196
|
+
viewabilityConfigCallbackPairs={Array []}
|
|
197
|
+
>
|
|
198
|
+
<View>
|
|
199
|
+
<View
|
|
200
|
+
onLayout={[Function]}
|
|
201
|
+
style={null}
|
|
202
|
+
>
|
|
203
|
+
<View
|
|
204
|
+
style={
|
|
205
|
+
Object {
|
|
206
|
+
"flexDirection": "row",
|
|
207
|
+
}
|
|
208
|
+
}
|
|
209
|
+
>
|
|
210
|
+
<item
|
|
211
|
+
value="i1"
|
|
212
|
+
/>
|
|
213
|
+
<item
|
|
214
|
+
value="i2"
|
|
215
|
+
/>
|
|
216
|
+
</View>
|
|
217
|
+
</View>
|
|
218
|
+
<View
|
|
219
|
+
onLayout={[Function]}
|
|
220
|
+
style={null}
|
|
221
|
+
>
|
|
222
|
+
<View
|
|
223
|
+
style={
|
|
224
|
+
Object {
|
|
225
|
+
"flexDirection": "row",
|
|
226
|
+
}
|
|
227
|
+
}
|
|
228
|
+
>
|
|
229
|
+
<item
|
|
230
|
+
value="i3"
|
|
231
|
+
/>
|
|
232
|
+
</View>
|
|
233
|
+
</View>
|
|
234
|
+
</View>
|
|
235
|
+
</RCTScrollView>
|
|
236
|
+
`;
|
|
237
|
+
|
|
238
|
+
exports[`FlatList renders simple list 1`] = `
|
|
239
|
+
<RCTScrollView
|
|
240
|
+
data={
|
|
241
|
+
Array [
|
|
242
|
+
Object {
|
|
243
|
+
"key": "i1",
|
|
244
|
+
},
|
|
245
|
+
Object {
|
|
246
|
+
"key": "i2",
|
|
247
|
+
},
|
|
248
|
+
Object {
|
|
249
|
+
"key": "i3",
|
|
250
|
+
},
|
|
251
|
+
]
|
|
252
|
+
}
|
|
253
|
+
getItem={[Function]}
|
|
254
|
+
getItemCount={[Function]}
|
|
255
|
+
keyExtractor={[Function]}
|
|
256
|
+
onContentSizeChange={[Function]}
|
|
257
|
+
onLayout={[Function]}
|
|
258
|
+
onMomentumScrollBegin={[Function]}
|
|
259
|
+
onMomentumScrollEnd={[Function]}
|
|
260
|
+
onScroll={[Function]}
|
|
261
|
+
onScrollBeginDrag={[Function]}
|
|
262
|
+
onScrollEndDrag={[Function]}
|
|
263
|
+
removeClippedSubviews={false}
|
|
264
|
+
renderItem={[Function]}
|
|
265
|
+
scrollEventThrottle={50}
|
|
266
|
+
stickyHeaderIndices={Array []}
|
|
267
|
+
viewabilityConfigCallbackPairs={Array []}
|
|
268
|
+
>
|
|
269
|
+
<View>
|
|
270
|
+
<View
|
|
271
|
+
onLayout={[Function]}
|
|
272
|
+
style={null}
|
|
273
|
+
>
|
|
274
|
+
<item
|
|
275
|
+
value="i1"
|
|
276
|
+
/>
|
|
277
|
+
</View>
|
|
278
|
+
<View
|
|
279
|
+
onLayout={[Function]}
|
|
280
|
+
style={null}
|
|
281
|
+
>
|
|
282
|
+
<item
|
|
283
|
+
value="i2"
|
|
284
|
+
/>
|
|
285
|
+
</View>
|
|
286
|
+
<View
|
|
287
|
+
onLayout={[Function]}
|
|
288
|
+
style={null}
|
|
289
|
+
>
|
|
290
|
+
<item
|
|
291
|
+
value="i3"
|
|
292
|
+
/>
|
|
293
|
+
</View>
|
|
294
|
+
</View>
|
|
295
|
+
</RCTScrollView>
|
|
296
|
+
`;
|
|
297
|
+
|
|
298
|
+
exports[`FlatList renders simple list using ListItemComponent (multiple columns) 1`] = `
|
|
299
|
+
<RCTScrollView
|
|
300
|
+
ListItemComponent={[Function]}
|
|
301
|
+
data={
|
|
302
|
+
Array [
|
|
303
|
+
Object {
|
|
304
|
+
"key": "i1",
|
|
305
|
+
},
|
|
306
|
+
Object {
|
|
307
|
+
"key": "i2",
|
|
308
|
+
},
|
|
309
|
+
Object {
|
|
310
|
+
"key": "i3",
|
|
311
|
+
},
|
|
312
|
+
]
|
|
313
|
+
}
|
|
314
|
+
getItem={[Function]}
|
|
315
|
+
getItemCount={[Function]}
|
|
316
|
+
keyExtractor={[Function]}
|
|
317
|
+
onContentSizeChange={[Function]}
|
|
318
|
+
onLayout={[Function]}
|
|
319
|
+
onMomentumScrollBegin={[Function]}
|
|
320
|
+
onMomentumScrollEnd={[Function]}
|
|
321
|
+
onScroll={[Function]}
|
|
322
|
+
onScrollBeginDrag={[Function]}
|
|
323
|
+
onScrollEndDrag={[Function]}
|
|
324
|
+
removeClippedSubviews={false}
|
|
325
|
+
scrollEventThrottle={50}
|
|
326
|
+
stickyHeaderIndices={Array []}
|
|
327
|
+
viewabilityConfigCallbackPairs={Array []}
|
|
328
|
+
>
|
|
329
|
+
<View>
|
|
330
|
+
<View
|
|
331
|
+
onLayout={[Function]}
|
|
332
|
+
style={null}
|
|
333
|
+
>
|
|
334
|
+
<View
|
|
335
|
+
style={
|
|
336
|
+
Object {
|
|
337
|
+
"flexDirection": "row",
|
|
338
|
+
}
|
|
339
|
+
}
|
|
340
|
+
>
|
|
341
|
+
<item
|
|
342
|
+
value="i1"
|
|
343
|
+
/>
|
|
344
|
+
<item
|
|
345
|
+
value="i2"
|
|
346
|
+
/>
|
|
347
|
+
</View>
|
|
348
|
+
</View>
|
|
349
|
+
<View
|
|
350
|
+
onLayout={[Function]}
|
|
351
|
+
style={null}
|
|
352
|
+
>
|
|
353
|
+
<View
|
|
354
|
+
style={
|
|
355
|
+
Object {
|
|
356
|
+
"flexDirection": "row",
|
|
357
|
+
}
|
|
358
|
+
}
|
|
359
|
+
>
|
|
360
|
+
<item
|
|
361
|
+
value="i3"
|
|
362
|
+
/>
|
|
363
|
+
</View>
|
|
364
|
+
</View>
|
|
365
|
+
</View>
|
|
366
|
+
</RCTScrollView>
|
|
367
|
+
`;
|
|
368
|
+
|
|
369
|
+
exports[`FlatList renders simple list using ListItemComponent 1`] = `
|
|
370
|
+
<RCTScrollView
|
|
371
|
+
ListItemComponent={[Function]}
|
|
372
|
+
data={
|
|
373
|
+
Array [
|
|
374
|
+
Object {
|
|
375
|
+
"key": "i1",
|
|
376
|
+
},
|
|
377
|
+
Object {
|
|
378
|
+
"key": "i2",
|
|
379
|
+
},
|
|
380
|
+
Object {
|
|
381
|
+
"key": "i3",
|
|
382
|
+
},
|
|
383
|
+
]
|
|
384
|
+
}
|
|
385
|
+
getItem={[Function]}
|
|
386
|
+
getItemCount={[Function]}
|
|
387
|
+
keyExtractor={[Function]}
|
|
388
|
+
onContentSizeChange={[Function]}
|
|
389
|
+
onLayout={[Function]}
|
|
390
|
+
onMomentumScrollBegin={[Function]}
|
|
391
|
+
onMomentumScrollEnd={[Function]}
|
|
392
|
+
onScroll={[Function]}
|
|
393
|
+
onScrollBeginDrag={[Function]}
|
|
394
|
+
onScrollEndDrag={[Function]}
|
|
395
|
+
removeClippedSubviews={false}
|
|
396
|
+
scrollEventThrottle={50}
|
|
397
|
+
stickyHeaderIndices={Array []}
|
|
398
|
+
viewabilityConfigCallbackPairs={Array []}
|
|
399
|
+
>
|
|
400
|
+
<View>
|
|
401
|
+
<View
|
|
402
|
+
onLayout={[Function]}
|
|
403
|
+
style={null}
|
|
404
|
+
>
|
|
405
|
+
<item
|
|
406
|
+
value="i1"
|
|
407
|
+
/>
|
|
408
|
+
</View>
|
|
409
|
+
<View
|
|
410
|
+
onLayout={[Function]}
|
|
411
|
+
style={null}
|
|
412
|
+
>
|
|
413
|
+
<item
|
|
414
|
+
value="i2"
|
|
415
|
+
/>
|
|
416
|
+
</View>
|
|
417
|
+
<View
|
|
418
|
+
onLayout={[Function]}
|
|
419
|
+
style={null}
|
|
420
|
+
>
|
|
421
|
+
<item
|
|
422
|
+
value="i3"
|
|
423
|
+
/>
|
|
424
|
+
</View>
|
|
425
|
+
</View>
|
|
426
|
+
</RCTScrollView>
|
|
427
|
+
`;
|