import React, { Component } from "react"; import { Platform, Image, requireNativeComponent } from "react-native"; import { FLAnimatedImageProps, MODES } from "./typedefs"; class FLAnimatedImage extends Component { static defaultProps = { resizeMode: "contain" }; render() { if (Platform.OS === "android") return ; const contentMode = MODES[this.props.resizeMode || "contain"]; const source = Image.resolveAssetSource(this.props.source) || { uri: undefined, width: undefined, height: undefined }; const src = source.uri; return ( ); } } const RNFLAnimatedImage = requireNativeComponent("RNFLAnimatedImage"); export default FLAnimatedImage;