Skip to content

Conversation

hassanahmedk
Copy link
Contributor

Description of what this PR is changing or adding, and why:

Fixes wording in the "How do I create reusable components?" section of the
React Native developers guide. The text previously referred to defining
a class component, but the provided example uses a function component.
This PR updates the description to correctly mention function components
so that the text matches the code example.

Issues fixed by this PR (if any):

N/A (doc clarity fix)

PRs or commits this PR depends on (if any):

None

Presubmit checklist

  • If you are unwilling, or unable, to sign the CLA, even for a tiny, one-word PR, please file an issue instead of a PR.
  • If this PR is not meant to land until a future stable release, mark it as draft with an explanation.
  • This PR follows the Google Developer Documentation Style Guidelines—for example, it doesn't use i.e. or e.g., and it avoids I and we (first-person pronouns).
  • This PR uses semantic line breaks
    of 80 characters or fewer.

Copy link

google-cla bot commented Sep 10, 2025

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

Copy link
Contributor

@sfshaza2 sfshaza2 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm. Thanks for clarifying!

@sfshaza2
Copy link
Contributor

/gcbrun

@flutter-website-bot
Copy link
Collaborator

Visit the preview URL for this PR (updated for commit 5259fcc):

https://flutter-docs-prod--pr12421-fix-react-native-reusable-c-m7um3bgz.web.app

@sfshaza2 sfshaza2 merged commit fdacc00 into flutter:main Sep 15, 2025
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants