File size: 2,316 Bytes
1e92f2d | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 | // Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`renders correctly 1`] = `
<View
style={
Object {
"flex": 1,
"marginTop": 30,
}
}
>
<View
style={
Object {
"alignItems": "stretch",
"flexDirection": "row",
}
}
>
<Image
source={
Object {
"uri": "https://www.algolia.com/static_assets/images/press/downloads/algolia-mark-blue.png",
}
}
style={
Object {
"height": 40,
"margin": 10,
"width": 40,
}
}
/>
<TextInput
allowFontScaling={true}
autoCapitalize="none"
autoCorrect={false}
clearButtonMode="always"
onChange={[Function]}
onChangeText={[Function]}
onFocus={[Function]}
placeholder="Search a product..."
placeholderTextColor="black"
rejectResponderTermination={true}
spellCheck={false}
style={
Object {
"alignSelf": "center",
"color": "black",
"height": 50,
"width": 300,
}
}
underlineColorAndroid="white"
value=""
/>
</View>
<Text
style={
Object {
"backgroundColor": "lightgrey",
"height": 40,
"justifyContent": "center",
"padding": 10,
}
}
>
Best results
</Text>
<View
style={
Object {
"flex": 1,
}
}
>
<RCTScrollView
ItemSeparatorComponent={[Function]}
data={Array []}
disableVirtualization={false}
getItem={[Function]}
getItemCount={[Function]}
horizontal={false}
initialNumToRender={10}
keyExtractor={[Function]}
maxToRenderPerBatch={10}
numColumns={1}
onContentSizeChange={[Function]}
onEndReached={[Function]}
onEndReachedThreshold={2}
onLayout={[Function]}
onMomentumScrollEnd={[Function]}
onScroll={[Function]}
onScrollBeginDrag={[Function]}
onScrollEndDrag={[Function]}
removeClippedSubviews={false}
renderItem={[Function]}
scrollEventThrottle={50}
stickyHeaderIndices={Array []}
updateCellsBatchingPeriod={50}
viewabilityConfigCallbackPairs={Array []}
windowSize={21}
>
<View />
</RCTScrollView>
</View>
</View>
`;
|