React Native Hole View - Web Example

November 19, 2025 ยท View on GitHub

This example demonstrates the React Native Web implementation of RNHoleView.

Getting Started

Using Yarn

  1. Navigate to the example directory:

    cd exampleWeb
    
  2. Install dependencies:

    yarn install
    

    Or use the shorthand:

    yarn
    
  3. Start the development server:

    yarn dev
    
  4. Open the printed Vite URL (defaults to http://localhost:5174) to interact with the overlay demo.

Using npm

  1. Navigate to the example directory:

    cd exampleWeb
    
  2. Install dependencies:

    npm install
    
  3. Start the development server:

    npm run dev
    
  4. Open the printed Vite URL (defaults to http://localhost:5174) to interact with the overlay demo.

Available Scripts

Yarn

  • yarn dev - Start the development server
  • yarn build - Build the project for production
  • yarn preview - Preview the production build

npm

  • npm run dev - Start the development server
  • npm run build - Build the project for production
  • npm run preview - Preview the production build

Features

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)