GitShow/react/react-native-website
react

react-native-website

The React Native website and docs

by react
docusaurusreactreact-native
Star on GitHubForkWebsite

MDX

2.2k stars6.3k forks1.5k contributorsActive · 6d agoSince 2017MIT

Meet the team

See all 1464 on GitHub →
Simek
Simek390 contributions
hramos
hramos212 contributions
tesseralis
tesseralis189 contributions
dependabot[bot]Bot
dependabot[bot]115 contributions
cpojer
cpojer98 contributions
cortinico
cortinico91 contributions
rickhanlonii
rickhanlonii91 contributions
huntie
huntie73 contributions

Languages

View on GitHub →
MDX61.1%
TypeScript31.3%
SCSS4.6%
CSS1.7%
JavaScript1.1%
HTML0.2%

Commit activity

Last 12 weeks · 61 commits

Full graph →

Community health

5 of 6 standards met

Community profile →
87
✓README✓License✓Contributing✓Code of Conduct○Issue Template✓PR Template

Recent PRs & issues

Active · Last activity 6d ago
See all on GitHub →
evankatz14
Document fontVariationSettings for variable fontsOpenPR

Added documentation for fontVariationSettings property.

evankatz14 · 6h ago
MuslumYilmaz
Docs: distinguish Fast Refresh effect reruns from Strict Mode checksOpenIssue

Description The Fast Refresh page correctly explains that Hooks with dependencies update during a refresh and that even an Effect with an empty dependency list can run again after an edit. A short clarification could help readers distinguish that behavior from React Strict Mode's separate development-only Effect check. What is the problem? When Strict Mode is enabled, developers can observe repeated Effect setup and cleanup without having triggered a Fast Refresh. Because both mechanisms occur during development and both reward resilient Effect cleanup, their output is easy to conflate while debugging. The triggers and behavior are different: Fast Refresh follows a code edit and temporarily ignores dependency lists so the edited Hook logic is applied. Strict Mode independently performs an extra development-only Effect setup and cleanup cycle to reveal missing cleanup. Without that distinction, a developer may incorrectly attribute every repeated Effect to Fast Refresh. How can we address it? Add a short note near the end of “Fast Refresh and Hooks,” using the official React Strict Mode documentation as the primary reference. Possible wording: Fast Refresh is not the only reason an Effect may run again during development. When Strict Mode is enabled at the application root, React performs an additional development-only setup and cleanup cycle to help find missing cleanup. Fast Refresh reruns Hooks after a code edit, whereas the Strict Mode check can occur on initial mounting without a file save. In both cases, Effects should implement complete cleanup and tolerate being restarted. Official reference: https://react.dev/reference/react/StrictMode#fixing-bugs-found-by-re-running-effects-in-development I can prepare a small docs-only PR against if this distinction belongs on the page. An optional public exercise illustrating the Strict Mode behavior is: https://frontendatlas.com/react/trivia/react-strictmode-double-invoke-effects That exercise is not required for the proposed correction; the official React documentation should remain the primary reference. Why is it important? It gives React Native developers a more precise debugging model for repeated subscriptions, requests, logs, and cleanup behavior, without weakening the existing guidance that Effects should be resilient. Who needs this? React Native developers using function components and Hooks, especially those diagnosing duplicated development-only Effect output. When should this happen (use version numbers if needed)? This is not tied to a specific React Native release. It can be made in the source for the next documentation version; any current-version backport can remain a maintainer decision. Disclosure I maintain FrontendAtlas, an independent frontend interview-prep project, including the optional exercise linked above. No paid, sponsored, or affiliate placement is being requested. I used AI assistance to draft this issue and reviewed it for technical accuracy before posting.

MuslumYilmaz · 15h ago
mdj-uk
Example showing need for FlatList extraData prop is misleadingOpenIssue

Basically https://github.com/react/react-native-website/issues/1529 from 2019 which was closed due to inactivity. Related: https://github.com/react/react-native-website/pull/2634 which attempted to address this but unfortunately received no attention. Description The second example at https://reactnative.dev/docs/flatlist#example is introduced with By passing to we make sure itself will re-render when the state changes. Without setting this prop, would not know it needs to re-render any items because it is a PureComponent and the prop comparison will not show any changes. But if you delete the prop everything works fine. Since closes over , it is recreated whenever changes (or on every single render if the react compiler is disabled), hence receives a new prop and re-renders properly as you'd expect. Which makes me wonder: is there ever a need for ? Was it once necessary (perhaps in class component days, or old react native architecture) and is no longer needed? I'm struggling to think of a scenario in which it's needed, other than an escape hatch for syncing with something outside react, or to opt back in to reactivity after making manual memoizations. Currently the docs suggest it's necessary to make basic reactivity work, which is confusing. Documentation version 0.87

mdj-uk · 2d ago

Recent fixes

View closed PRs →
YashSensei
Better UI/UX by adding better scrolls in the docsClosedIssue

Issue: Page does not scroll when cursor is over editable code block When hovering over a code block in the documentation, scrolling stops once the editable code block reaches its end. At that point, the main page does not continue scrolling unless the cursor is moved outside the code block. Expected behavior: Once the editable code block has been fully scrolled, further scroll input should continue scrolling the entire page without requiring the user to move the cursor away from the code block. Current behavior: The page only scrolls again after the cursor is no longer hovering over the code block. This is a minor UX issue and should be straightforward to fix. Allow me to fix it please

YashSensei · 1d ago
mabdullahkhan113456890-blip
WWW.CRICKET LOVER .COM.PKMergedPR

Online Marketing Cricket Player Turning ideas into brands and _practice_ into performance. Based in Karachi. Let's connect and grow. ⚡

mabdullahkhan113456890-blip · 4d ago
retyui
feat(style): remove experimental_ prefix from backgroundImage RN 0.87.xMergedPR

prefix was removed for the next Release (0.87.x) commit: https://github.com/react/react-native/commit/58688bf17623fa54e8c62397ecb0abd285c01a94

retyui · 6d ago
Structured data for AI agents

Repository: react/react-native-website. Description: The React Native website and docs Stars: 2156, Forks: 6285. Primary language: MDX. Languages: MDX (61.1%), TypeScript (31.3%), SCSS (4.6%), CSS (1.7%), JavaScript (1.1%). License: MIT. Homepage: https://reactnative.dev Topics: docusaurus, react, react-native. Open PRs: 90, open issues: 12. Last activity: 6d ago. Community health: 87%. Top contributors: Simek, hramos, tesseralis, dependabot[bot], cpojer, cortinico, rickhanlonii, huntie, charpeni, luism3861 and others.

·@ofershap

Replace github.com with gitshow.dev