{"repo":"vercel-labs/react-native-diffs","free":true,"listed":false,"github":"https://github.com/vercel-labs/react-native-diffs","clone":"git clone https://github.com/vercel-labs/react-native-diffs.git","description":"Diff library for React Native","language":"JavaScript","stars":16,"topics":["diff","markdown","react","react-native"],"license":"MIT","category":"mobile-apps","readme_excerpt":"React Native Diffs Diff library for React Native, powered by MarkdownView. Installation Usage Diff formats Content can be a fenced or code block, or a raw unified diff string — MarkdownView auto-detects and renders it as a styled diff view with hunk headers, line numbers, and inline change highlighting. You can also include multiple fenced diff blocks in a single content string to render them all in one scrollable view. Examples Custom dark theme Props Prop Type Required Description ------ ------ ---------- ------------- content string Yes Markdown or diff content to render colorScheme string Yes Color scheme ( \"dark\" or \"light\" ) contentInset ContentInset No Scroll view content inset { top, bottom } showsBlockHeaders boolean No Show code/diff block headers with copy button (default true ) theme Theme No Custom theme configuration customMenuItems CustomMenuItem[] No Extra items appended to the text-selection menu on code/diff blocks onCustomMenuAction (event: CustomMenuEvent) = void No Fires when a custom menu item is tapped. Must be wrapped as { f: handler } (see below) onLineSelection (info?: LineSelectionInfo) = void No Enables line selection mode; fires continuously as the user drags. Wrap as { f: handler } onLineSelectionEnd (info?: LineSelectionInfo) = void No Fires once when the selection gesture settles (tap release / drag release). Wrap as { f: handler } . Setting only this still enables line selection. Callback wrapping Nitro view-prop callbacks cross the bridge as ","default_branch":null,"files":null,"tree":[],"storefront":"/r/vercel-labs","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/vercel-labs/react-native-diffs/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}