Panscale

Install the packages:

pnpm add @panscale/core @panscale/react-native transformation-matrix

Quick Start

import { ScalerView } from "@panscale/react-native";

function App() {
  return (
    <ScalerView
      style={{ flex: 1 }}
      contentWidth={2000}
      contentHeight={1500}
      options={{ zooming: true, bouncing: true }}
    >
      {/* Your content here */}
    </ScalerView>
  );
}

On this page