### Start Example App Packager Source: https://github.com/callstack/liquid-glass/blob/main/CONTRIBUTING.md Starts the Metro server for the example application, allowing you to test library changes. ```sh yarn example start ``` -------------------------------- ### Run Example App on iOS Source: https://github.com/callstack/liquid-glass/blob/main/CONTRIBUTING.md Builds and runs the example application on an iOS simulator or device. ```sh yarn example ios ``` -------------------------------- ### Run Example App on Android Source: https://github.com/callstack/liquid-glass/blob/main/CONTRIBUTING.md Builds and runs the example application on an Android device or emulator. ```sh yarn example android ``` -------------------------------- ### Run Pod Install for iOS Source: https://github.com/callstack/liquid-glass/blob/main/_autodocs/integration-guide.md After installation, navigate to the ios directory and run pod install to generate native Codegen artifacts required for iOS functionality. ```bash cd ios pod install cd .. ``` -------------------------------- ### LiquidGlassView Usage Example Source: https://github.com/callstack/liquid-glass/blob/main/_autodocs/quick-reference.md A basic example demonstrating how to use the LiquidGlassView component with specific styles and effects. ```tsx ``` -------------------------------- ### Start Metro Bundler Source: https://github.com/callstack/liquid-glass/blob/main/example/README.md Run this command from the root of your React Native project to start the Metro dev server. This is necessary before building and running the app. ```sh # Using npm npm start # OR using Yarn yarn start ``` -------------------------------- ### Install Project Dependencies Source: https://github.com/callstack/liquid-glass/blob/main/CONTRIBUTING.md Run this command in the root directory to install all necessary dependencies for the monorepo using Yarn workspaces. ```sh yarn ``` -------------------------------- ### Install CocoaPods Dependencies Source: https://github.com/callstack/liquid-glass/blob/main/example/README.md Before running the iOS app, install CocoaPods dependencies. Run 'bundle install' once to install CocoaPods, then 'bundle exec pod install' after updating native dependencies. ```sh bundle install bundle exec pod install ``` -------------------------------- ### LiquidGlassView Usage Example Source: https://github.com/callstack/liquid-glass/blob/main/_autodocs/types.md Example of how to use the LiquidGlassView component with custom effect and color scheme. Ensure LiquidGlassView and its types are imported. ```tsx import { LiquidGlassView, type LiquidGlassViewProps } from '@callstack/liquid-glass'; const CustomGlassView: React.FC = (props) => { return ( ); }; ``` -------------------------------- ### Interactive LiquidGlassView Example Source: https://github.com/callstack/liquid-glass/blob/main/_autodocs/quick-reference.md Demonstrates how to enable interactivity on a LiquidGlassView component by setting the 'interactive' prop to true. ```tsx ``` -------------------------------- ### LiquidGlassContainerView Usage Example Source: https://github.com/callstack/liquid-glass/blob/main/_autodocs/quick-reference.md An example showing how to use LiquidGlassContainerView to contain multiple LiquidGlassView components, applying spacing between them. ```tsx ``` -------------------------------- ### Install React Native Liquid Glass Source: https://github.com/callstack/liquid-glass/blob/main/README.md Install the library using npm or yarn. Ensure your project meets the Xcode and React Native version requirements. ```bash npm install @callstack/liquid-glass # or yarn add @callstack/liquid-glass ``` -------------------------------- ### Simple Glass Background Example Source: https://github.com/callstack/liquid-glass/blob/main/_autodocs/quick-reference.md Renders a basic Liquid Glass view with specified dimensions and border radius. No special props are required for a simple effect. ```tsx import { LiquidGlassView } from '@callstack/liquid-glass'; export function SimpleGlass() { return ( ); } ``` -------------------------------- ### isLiquidGlassSupported Usage Example Source: https://github.com/callstack/liquid-glass/blob/main/_autodocs/quick-reference.md Demonstrates conditional logic based on platform support for liquid glass effects, applying fallback styling when not supported. ```tsx if (isLiquidGlassSupported) { // Use glass effects } else { // Apply fallback styling } ``` -------------------------------- ### Build and Run iOS App Source: https://github.com/callstack/liquid-glass/blob/main/example/README.md After installing CocoaPods dependencies, use this command to build and run the iOS application. Ensure Metro is running. ```sh # Using npm npm run ios # OR using Yarn yarn ios ``` -------------------------------- ### LiquidGlassView with 'light' color scheme Source: https://github.com/callstack/liquid-glass/blob/main/_autodocs/quick-reference.md Example of using LiquidGlassView with the 'light' color scheme to force a light appearance. ```tsx ``` -------------------------------- ### LiquidGlassView with 'regular' effect Source: https://github.com/callstack/liquid-glass/blob/main/_autodocs/quick-reference.md Example of using LiquidGlassView with the default 'regular' effect mode for a standard glass blur. ```tsx ``` -------------------------------- ### LiquidGlassContainerView Usage Example Source: https://github.com/callstack/liquid-glass/blob/main/_autodocs/types.md Example of a custom container component using LiquidGlassContainerView. It accepts a spacing prop to define the distance for effect merging. ```tsx import { LiquidGlassContainerView, type LiquidGlassContainerViewProps } from '@callstack/liquid-glass'; interface CustomContainerProps extends LiquidGlassContainerViewProps { label?: string; } const CustomGlassContainer: React.FC = ({ label, ...props }) => { return ( ); }; ``` -------------------------------- ### Spacing Effect Demonstration with LiquidGlassContainerView Source: https://github.com/callstack/liquid-glass/blob/main/_autodocs/api-reference/LiquidGlassContainerView.md This example shows how to use LiquidGlassContainerView to manage the spacing and merging of glass effects for child LiquidGlassView components. Adjust the spacing prop to see how the effects combine or separate. ```tsx import { LiquidGlassView, LiquidGlassContainerView } from '@callstack/liquid-glass'; import { View, Button } from 'react-native'; import { useState } from 'react'; export function SpacingDemo() { const [spacing, setSpacing] = useState(20); return (