### Start the Example App Packager Source: https://github.com/software-mansion-labs/react-native-enriched-markdown/blob/main/CONTRIBUTING.md Start the Metro bundler for the example application. This is necessary to run the example app on a device or simulator. ```sh yarn example start ``` -------------------------------- ### Project Setup and Dependency Installation Source: https://github.com/software-mansion-labs/react-native-enriched-markdown/blob/main/CONTRIBUTING.md Run this script to install all necessary project dependencies. ```sh yarn ``` -------------------------------- ### Install Dependencies and Build Library Source: https://github.com/software-mansion-labs/react-native-enriched-markdown/blob/main/CONTRIBUTING.md Install project dependencies using Yarn and build the library. This is a prerequisite for running any of the example applications. ```sh # Install dependencies yarn # Build the library (required before running any app) yarn prepare ``` -------------------------------- ### Run Example App on iOS Source: https://github.com/software-mansion-labs/react-native-enriched-markdown/blob/main/CONTRIBUTING.md Build and run the example application on an iOS simulator or device. ```sh yarn example ios ``` -------------------------------- ### Run Example App on Android Source: https://github.com/software-mansion-labs/react-native-enriched-markdown/blob/main/CONTRIBUTING.md Build and run the example application on an Android device or emulator. ```sh yarn example android ``` -------------------------------- ### Install KaTeX for Web Source: https://github.com/software-mansion-labs/react-native-enriched-markdown/blob/main/docs/LATEX_MATH.md Install the optional KaTeX peer dependency for web LaTeX rendering. It is loaded lazily. ```sh npm install katex # or yarn add katex ``` -------------------------------- ### Install KaTeX for Web LaTeX Support Source: https://github.com/software-mansion-labs/react-native-enriched-markdown/blob/main/README.md For web support with LaTeX math rendering, install the optional KaTeX peer dependency. ```sh npm install katex ``` -------------------------------- ### Basic EnrichedMarkdownTextInput Usage Source: https://github.com/software-mansion-labs/react-native-enriched-markdown/blob/main/docs/INPUT.md This example demonstrates a basic setup for EnrichedMarkdownTextInput, including state management for bold styling and a button to toggle it. It utilizes a ref to imperatively call methods on the input component. ```tsx import { useRef, useState } from 'react'; import { View, Button, StyleSheet } from 'react-native'; import { EnrichedMarkdownTextInput, type EnrichedMarkdownTextInputInstance, type StyleState, } from 'react-native-enriched-markdown'; export default function App() { const ref = useRef(null); const [state, setState] = useState(null); return (