This example demonstrates the React Native Web implementation of RNHoleView.
-
Navigate to the example directory:
cd exampleWeb -
Install dependencies:
yarn install
Or use the shorthand:
yarn
-
Start the development server:
yarn dev
-
Open the printed Vite URL (defaults to http://localhost:5174) to interact with the overlay demo.
-
Navigate to the example directory:
cd exampleWeb -
Install dependencies:
npm install
-
Start the development server:
npm run dev
-
Open the printed Vite URL (defaults to http://localhost:5174) to interact with the overlay demo.
yarn dev- Start the development serveryarn build- Build the project for productionyarn preview- Preview the production build
npm run dev- Start the development servernpm run build- Build the project for productionnpm run preview- Preview the production build
This example showcases:
- Basic hole view with touch-through functionality
- Animated hole transitions
- Support for nested views and interactive elements
- Cross-browser compatibility (including Firefox)