67 lines
1.2 KiB
Plaintext
67 lines
1.2 KiB
Plaintext
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
|
|
exports[`FastImage renders correctly. 1`] = `
|
|
<View
|
|
style={
|
|
Array [
|
|
Object {
|
|
"height": 44,
|
|
"width": 44,
|
|
},
|
|
Object {
|
|
"overflow": "hidden",
|
|
},
|
|
]
|
|
}
|
|
>
|
|
<FastImageView
|
|
onFastImageError={undefined}
|
|
onFastImageLoad={undefined}
|
|
onFastImageLoadEnd={undefined}
|
|
onFastImageLoadStart={undefined}
|
|
onFastImageProgress={undefined}
|
|
resizeMode="cover"
|
|
source={
|
|
Object {
|
|
"headers": Object {
|
|
"token": "someToken",
|
|
},
|
|
"priority": "high",
|
|
"uri": "https://facebook.github.io/react/img/logo_og.png",
|
|
}
|
|
}
|
|
style={
|
|
Object {
|
|
"bottom": 0,
|
|
"left": 0,
|
|
"position": "absolute",
|
|
"right": 0,
|
|
"top": 0,
|
|
}
|
|
}
|
|
/>
|
|
</View>
|
|
`;
|
|
|
|
exports[`Renders a normal Image when not passed a uri. 1`] = `
|
|
<Image
|
|
onError={undefined}
|
|
onLoad={undefined}
|
|
onLoadEnd={undefined}
|
|
onLoadStart={undefined}
|
|
onProgress={undefined}
|
|
resizeMode="cover"
|
|
source={
|
|
Object {
|
|
"testUri": "../../../react-native-fast-image-example-server/pictures/jellyfish.gif",
|
|
}
|
|
}
|
|
style={
|
|
Object {
|
|
"height": 44,
|
|
"width": 44,
|
|
}
|
|
}
|
|
/>
|
|
`;
|