@rraut/react-native-faster-image
Version:
Package for Faster image in React Native.
31 lines (30 loc) • 928 B
JavaScript
;
import NativeFasterImage from "./NativeFasterImage.js";
import * as React from 'react';
import { jsx as _jsx } from "react/jsx-runtime";
const ImageView = require('./FasterImageViewNativeComponent').default;
export class FasterImageView extends React.Component {
constructor(props) {
super(props);
}
render() {
const newProps = {
...this.props
};
/** This change is required as Codegen C++ to Objective C++ bool data type mapping gets mismateched to bool and string..
* Needs to look at this on depth to simplify the JS api.
*
*/
if (newProps.source.isGIF === undefined) {
newProps.source.isGIF = false;
}
if (newProps.source.isBase64 === undefined) {
newProps.source.isBase64 = false;
}
return /*#__PURE__*/_jsx(ImageView, {
...newProps
});
}
}
export const FasterImage = NativeFasterImage;
//# sourceMappingURL=index.js.map