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

Update Example and Templates #6099

Merged
merged 1 commit into from
Aug 25, 2023
Merged

Update Example and Templates #6099

merged 1 commit into from
Aug 25, 2023

Conversation

takameyer
Copy link
Contributor

@takameyer takameyer commented Aug 25, 2023

What, How & Why?

  • Fix small bug in error for auth hooks
  • Update dependencies
  • Update React Native and Expo in Templates

This closes #5942

We should wait for this to be merged before releasing the expo template.

☑️ ToDos

  • 📝 Changelog entry
  • 📝 Compatibility label is updated or copied from previous entry
  • 📝 Update COMPATIBILITY.md
  • 🚦 Tests
  • 📦 Updated internal package version in consuming package.jsons (if updating internal packages)
  • 📱 Check the React Native/other sample apps work if necessary
  • 💥 Breaking label has been applied or is not necessary

Copy link
Contributor

@elle-j elle-j left a comment

Choose a reason for hiding this comment

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

LGTM, with some minor questions 👍

@@ -4,6 +4,7 @@
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [

Copy link
Contributor

Choose a reason for hiding this comment

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

Accidental line break?

Suggested change

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Accidental modification, yes

Copy link
Contributor

Choose a reason for hiding this comment

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

Should we mention anything about npm v9 here?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Expo has already merged by PR, but I'm unsure when it will actually be released in the wild. I'll add a note that if they have issues they should upgrade npm

Copy link
Contributor

Choose a reason for hiding this comment

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

I noticed that a README inside the react-native-template/template/ directory didn't exist before. Is this README meant to coexist with react-native-template/README.md?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, it's fine. React Native added a readme to their base template in version 72. I like to keep the templates as near to the React Native default. But now that you have pointed this out, I will added pieces of our template README into this one to explain sync

Copy link
Contributor

Choose a reason for hiding this comment

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

Note: Binary got uploaded.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

That's fine, it's coming from the latest React Native

Comment on lines +20 to 22
export default App;

AppRegistry.registerComponent(appName, () => App);
Copy link
Contributor

Choose a reason for hiding this comment

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

Is there something importing App? Seemed to only be passed to AppRegistry before.

Copy link
Contributor Author

@takameyer takameyer Aug 25, 2023

Choose a reason for hiding this comment

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

The Jest test was importing the base app component. I realized it would be good to import something that works instead of having the template start with a broken test.

"react-native-get-random-values": "^1.9.0",
"realm": "11.10.1"
"realm": "12.0.0"
Copy link
Contributor

Choose a reason for hiding this comment

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

🍾

Copy link
Contributor

Choose a reason for hiding this comment

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

Might have missed it, but did the contents of this file get moved somewhere else?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good catch. I generally just create a new react native project to upgrade the templates and copy the files in by hand. I had forgotten this one. Perhaps one day I'll actually get this automated in a sane way.

Copy link
Contributor

Choose a reason for hiding this comment

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

I agree, it's often easier to just create a new project 👍

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Expo is the easiest. It actually can upgrade automatically.

* Fix small bug in error for auth hooks
* Update dependencies
* Update React Native and Expo in Templates
@takameyer takameyer merged commit 3095fe6 into main Aug 25, 2023
18 checks passed
@takameyer takameyer deleted the andrew/update-templates branch August 25, 2023 12:30
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 15, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Update Expo template to use the local Expo CLI
2 participants