UNPKG

expo-pixel-perfect

Version:

Nearest-Neighbor scaling for React Native and Expo

16 lines 718 B
import { ExpoPixelPerfectViewProps, Scale } from "./ExpoPixelPerfect.types"; /** * A component for rendering pixel art with perfect scaling. * Ensures crisp, sharp pixels without blurring or anti-aliasing. * * @example * <ExpoPixelPerfectView * source={require('./assets/character.png')} * scale={4} * android_renderMode="software" * ios_renderMode="software" * /> */ export default function ExpoPixelPerfectView({ source, style, scale, onError, onLoad, fallback, loadingComponent, android_renderMode, ios_renderMode, }: ExpoPixelPerfectViewProps): import("react").JSX.Element | null; export type { ExpoPixelPerfectViewProps, Scale as PixelScale }; //# sourceMappingURL=ExpoPixelPerfectView.d.ts.map