UNPKG

react-native-fast-image

Version:

🚩 FastImage, performant React Native image component.

21 lines (18 loc) • 473 B
import 'react-native' import React from 'react' import renderer from 'react-test-renderer' import FastImage from './FastImage.js' test('FastImage renders correctly.', () => { const tree = renderer.create( <FastImage source={{ uri: 'https://facebook.github.io/react/img/logo_og.png', headers: { token: 'someToken', }, priority: FastImage.priority.high, }} /> ).toJSON() expect(tree).toMatchSnapshot() })