import * as React from 'react'; import { StyleSheet, View, ViewStyle } from 'react-native'; import { defaultImage } from './images'; import { ImageTestComponent, ImageTestProps } from './types'; type PropsType = { style?: ViewStyle; imageProps: ImageTestProps; ImageComponent: ImageTestComponent; loadOnDemand?: boolean; }; export default class ImageTestView extends React.PureComponent { render() { const { imageProps, ImageComponent, loadOnDemand } = this.props; const { style, source, ...otherImageProps } = imageProps; return ( ); } } const styles = StyleSheet.create({ container: { flex: 1, justifyContent: 'center', alignItems: 'center', backgroundColor: 'white', }, image: { width: 200, height: 200, }, });