### Develop or Run Example App with Bun Source: https://github.com/marceloprado/flash-calendar/blob/main/README.md Use this command to start the development server or run the example application. ```bash bun dev ``` -------------------------------- ### Start Local Development Server Source: https://github.com/marceloprado/flash-calendar/blob/main/apps/docs/README.md Starts a local development server for live preview. Changes are reflected without restarting. ```bash $ yarn start ``` -------------------------------- ### Install Dependencies with Bun Source: https://github.com/marceloprado/flash-calendar/blob/main/README.md Run this command at the root of the project to install all necessary dependencies using Bun. ```bash bun install ``` -------------------------------- ### Install Dependencies Source: https://github.com/marceloprado/flash-calendar/blob/main/apps/docs/README.md Installs project dependencies using Yarn. ```bash $ yarn ``` -------------------------------- ### Install Flash Calendar and FlashList Source: https://context7.com/marceloprado/flash-calendar/llms.txt Install the package and its required peer dependency using npm or yarn. ```bash npm add @marceloterreiro/flash-calendar @shopify/flash-list # or yarn add @marceloterreiro/flash-calendar @shopify/flash-list ``` -------------------------------- ### Build Project with Bun Source: https://github.com/marceloprado/flash-calendar/blob/main/README.md Execute this command to build the project, which is required after a fresh installation. ```bash bun run build ``` -------------------------------- ### Install Flash Calendar Source: https://github.com/marceloprado/flash-calendar/blob/main/apps/docs/docs/index.mdx Add the Flash Calendar package to your project using npm or yarn. Ensure peer dependencies are also installed. ```bash npm add @marceloterreiro/flash-calendar ``` -------------------------------- ### Programmatic Scrolling with Calendar List Ref Source: https://github.com/marceloprado/flash-calendar/blob/main/apps/docs/docs/fundamentals/tips-and-tricks.mdx Control calendar scrolling imperatively using a ref. This example demonstrates scrolling to a specific month and handling day presses by scrolling to the selected date. ```typescript import { addMonths, subMonths, startOfMonth } from "date-fns"; import type { CalendarListRef } from "@marceloterreiro/flash-calendar"; import { Calendar, toDateId } from "@marceloterreiro/flash-calendar"; import { useRef, useState, useCallback } from "react"; import { Button, Text, View } from "react-native"; export function ImperativeScrolling() { const [currentMonth, setCurrentMonth] = useState(startOfMonth(new Date())); const ref = useRef(null); const onCalendarDayPress = useCallback((dateId: string) => { ref.current?.scrollToDate(fromDateId(dateId), true); }, []); return (