Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add README to RN Template App, added when npx react-native@latest init <AppName> #37521

Conversation

Pranav-yadav
Copy link
Contributor

@Pranav-yadav Pranav-yadav commented May 22, 2023

Summary:

I noticed that; when a new RN App is created using RN CLI there is NO README file added to the project.
Having a simple README file explaining what type of project it is, for example how other web projects do it, such as long lived create-react-app, now widely used create-next-app, etc.

Why not for React Native App then?

This PR; Adds README file to RN Template App ⚡, which should be added to the project when a new project is created using RN CLI.

Website PR: facebook/react-native-website#3732 🚀😇

Changelog:

[INTERNAL] [ADDED] - Add README to RN Template App ⚡

Test Plan:

  • The README file should be included in the newly created RN App using RN CLI

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label May 22, 2023
@Pranav-yadav
Copy link
Contributor Author

@cortinico WDYT?

  1. Should we add README to RN Template App?
  2. What extra sections need to be added?
  3. What should be removed? (I would say the "Learn More" section should short and simple)

Cc: @kelset

@Pranav-yadav Pranav-yadav changed the title Add README to RN Template App ⚡ Add README to RN Template App, added when npx react-native@latest init <AppName> May 22, 2023
@analysis-bot
Copy link

analysis-bot commented May 22, 2023

Platform Engine Arch Size (bytes) Diff
android hermes arm64-v8a 8,757,669 +0
android hermes armeabi-v7a 8,070,239 +3
android hermes x86 9,250,265 +0
android hermes x86_64 9,099,405 -1
android jsc arm64-v8a 9,318,872 +2
android jsc armeabi-v7a 8,508,773 +0
android jsc x86 9,382,363 +2
android jsc x86_64 9,635,606 -1

Base commit: be34852
Branch: main

Copy link
Contributor

@cipolleschi cipolleschi left a comment

Choose a reason for hiding this comment

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

Thanks for taking the time for this. I left a comment on iOS as we should support explicitly both platforms! 😉

packages/react-native/template/README.md Outdated Show resolved Hide resolved
@facebook-github-bot
Copy link
Contributor

@cipolleschi has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

@Pranav-yadav Pranav-yadav force-pushed the Pranav-yadav/readme-for-template branch 2 times, most recently from 2503f10 to 955998d Compare May 22, 2023 20:39
@Pranav-yadav
Copy link
Contributor Author

Pushed some changes, addressing feedback!
🙂

@Pranav-yadav Pranav-yadav force-pushed the Pranav-yadav/readme-for-template branch from 955998d to 3e060f2 Compare May 23, 2023 15:33
packages/react-native/template/README.md Outdated Show resolved Hide resolved
packages/react-native/template/README.md Outdated Show resolved Hide resolved
packages/react-native/template/README.md Outdated Show resolved Hide resolved
packages/react-native/template/README.md Outdated Show resolved Hide resolved
@Pranav-yadav
Copy link
Contributor Author

Basis, discussion above, also opened react-native-website PR: facebook/react-native-website#3732

@Pranav-yadav
Copy link
Contributor Author

Copy link
Contributor

@kelset kelset left a comment

Choose a reason for hiding this comment

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

Great work! Thanks @Pranav-yadav!

@Pranav-yadav
Copy link
Contributor Author

Note: I'll be taking a break, since finished with exams and haven't taken one in a while 😅.
I've "Allowed edits by maintainers". So, please feel free to suggest and commit changes as you feel right.
Thanks for reviewing and providing feedback.

@facebook-github-bot
Copy link
Contributor

@cipolleschi has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

@Pranav-yadav
Copy link
Contributor Author

Pranav-yadav commented Jun 13, 2023

As Nick mentioned about the npm option available in the RN CLI under the website PR,
So, I think instead of coming up with some another way to tackle that, it would be great if we could just provide both npm run and yarn commands for each step, like:
e.g.:

--

For Android:

# using npm
npm run android

# OR using yarn
yarn android

For iOS:

# using npm
npm run ios

# OR using yarn
yarn ios

--

@NickGerleman @kelset WDYT?

@kelset
Copy link
Contributor

kelset commented Jun 13, 2023

yeah I think that's ok 👍 go for it

@Pranav-yadav
Copy link
Contributor Author

@Pranav-yadav Pranav-yadav force-pushed the Pranav-yadav/readme-for-template branch from eb581df to e0d3c9f Compare June 14, 2023 15:08
cipolleschi

This comment was marked as resolved.

@facebook-github-bot
Copy link
Contributor

@cipolleschi has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

@Pranav-yadav
Copy link
Contributor Author

#offtopic :) 👇

Looks like I discovered a bug in GitHub's frontend logic 😃
When I was replying to Riccardo's (requested changes comment), he deleted the comment and when I clicked on comment/post, GitHub started a review on my behalf which can be seen above 🤔 or maybe it's possible that someone else did it 👀 or I'm thinking tooooo much about GitHub and OSS stuff these days 🤣.

@facebook-github-bot facebook-github-bot added the Merged This PR has been merged. label Jun 14, 2023
@facebook-github-bot
Copy link
Contributor

@cipolleschi merged this pull request in 377a8b7.

@Pranav-yadav Pranav-yadav deleted the Pranav-yadav/readme-for-template branch June 15, 2023 09:04
kelset pushed a commit that referenced this pull request Jun 28, 2023
…it <AppName>` (#37521)

Summary:
[skip-ci]
I noticed that; when a _new_ RN App is created using RN CLI there is ***NO*** *README* file added to the project.
Having a simple README file explaining what type of project it is, for example how other web projects do it, such as long lived `create-react-app`, now widely used `create-next-app`, etc.

Why not for React Native App then?

This PR; Adds README file to RN Template App ⚡, which should be added to the project when a new project is created using RN CLI.

### Website PR: facebook/react-native-website#3732 🚀😇

bypass-github-export-checks

## Changelog:

[INTERNAL] [ADDED] - Add README to RN Template App ⚡

Pull Request resolved: #37521

Test Plan: - The README file should be included in the newly created RN App using RN CLI

Reviewed By: NickGerleman

Differential Revision: D46075719

Pulled By: cipolleschi

fbshipit-source-id: efcccc09d72c57a065b36de6e787594082000e15
blakef pushed a commit to blakef/template that referenced this pull request Feb 28, 2024
…it <AppName>` (#37521)

Summary:
[skip-ci]
I noticed that; when a _new_ RN App is created using RN CLI there is ***NO*** *README* file added to the project.
Having a simple README file explaining what type of project it is, for example how other web projects do it, such as long lived `create-react-app`, now widely used `create-next-app`, etc.

Why not for React Native App then?

This PR; Adds README file to RN Template App ⚡, which should be added to the project when a new project is created using RN CLI.

### Website PR: facebook/react-native-website#3732 🚀😇

bypass-github-export-checks

## Changelog:

[INTERNAL] [ADDED] - Add README to RN Template App ⚡

Pull Request resolved: facebook/react-native#37521

Test Plan: - The README file should be included in the newly created RN App using RN CLI

Reviewed By: NickGerleman

Differential Revision: D46075719

Pulled By: cipolleschi

fbshipit-source-id: efcccc09d72c57a065b36de6e787594082000e15

Original: facebook/react-native@377a8b7
blakef pushed a commit to react-native-community/template that referenced this pull request Feb 29, 2024
…it <AppName>` (#37521)

Summary:
[skip-ci]
I noticed that; when a _new_ RN App is created using RN CLI there is ***NO*** *README* file added to the project.
Having a simple README file explaining what type of project it is, for example how other web projects do it, such as long lived `create-react-app`, now widely used `create-next-app`, etc.

Why not for React Native App then?

This PR; Adds README file to RN Template App ⚡, which should be added to the project when a new project is created using RN CLI.

### Website PR: facebook/react-native-website#3732 🚀😇

bypass-github-export-checks

## Changelog:

[INTERNAL] [ADDED] - Add README to RN Template App ⚡

Pull Request resolved: facebook/react-native#37521

Test Plan: - The README file should be included in the newly created RN App using RN CLI

Reviewed By: NickGerleman

Differential Revision: D46075719

Pulled By: cipolleschi

fbshipit-source-id: efcccc09d72c57a065b36de6e787594082000e15

Original-Commit: facebook/react-native@377a8b7
blakef pushed a commit to react-native-community/template that referenced this pull request Feb 29, 2024
…it <AppName>` (#37521)

Summary:
[skip-ci]
I noticed that; when a _new_ RN App is created using RN CLI there is ***NO*** *README* file added to the project.
Having a simple README file explaining what type of project it is, for example how other web projects do it, such as long lived `create-react-app`, now widely used `create-next-app`, etc.

Why not for React Native App then?

This PR; Adds README file to RN Template App ⚡, which should be added to the project when a new project is created using RN CLI.

### Website PR: facebook/react-native-website#3732 🚀😇

bypass-github-export-checks

## Changelog:

[INTERNAL] [ADDED] - Add README to RN Template App ⚡

Pull Request resolved: facebook/react-native#37521

Test Plan: - The README file should be included in the newly created RN App using RN CLI

Reviewed By: NickGerleman

Differential Revision: D46075719

Pulled By: cipolleschi

fbshipit-source-id: efcccc09d72c57a065b36de6e787594082000e15

Original-Commit: facebook/react-native@377a8b7
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. Merged This PR has been merged.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants