MaskSegmentApp/ # Repo root (npm package react-native-mask-segment-canvas)
âââ App.tsx # Dev self-test Demo (imports from ./src directly)
âââ src/
â âââ index.ts # Package entry (consumer: import 'react-native-mask-segment-canvas')
â âââ components/
â â âââ MaskSegmentCanvas.tsx
â â âââ MaskSegmentCanvas.types.ts
â âââ utils/
â âââ maskSegmentation.ts
â âââ maskSegmentRuntime.ts
â âââ maskSemanticPalette.ts
â âââ magneticLasso.ts # Edge-snapping lasso (Sobel + Dijkstra)
â âââ activeContour.ts # Active Contour refinement (snake + balloon)
â âââ wallTextureSplit.ts # Automatic & manual wall texture splitting
â âââ ...
âââ example/ # â
Recommended: consumer-side integration demo
â âââ App.tsx # Full example using only the public API
â âââ index.js / app.json
â âââ package.json # Required deps + "react-native-mask-segment-canvas": "file:.."
â âââ metro.config.js / babel.config.js / tsconfig.json
â âââ README.md # How to integrate in a real project
âââ patches/ # Shipped with the package; applied by host postinstall
âââ ios/ # Root Demo native project (not published to npm)
âââ android/