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

chore: Remove expo projects and remove no-hoisting #172

Merged
merged 1 commit into from
May 12, 2021

Conversation

oblador
Copy link
Member

@oblador oblador commented May 12, 2021

Issue: #162

What I did

In order to make the monorepo a bit more manageable I've removed no-hoisting directives so that all packages can share the same installation of react and react-native. Since expo uses their own version of react-native and thus wouldn't work with hoisting, these examples have been removed as they provided little value anyways. Expo brought react-native-web setup, but we'll be adding that ourselves directly instead as tracked in #170.

Fresh installs are now ~8x faster and react hooks work.

I've disabled Flipper on iOS as it doesn't work out of the box right now and makes compile time much slower. We can easily re-enable it later.

I chose to keep using the 0.63 range as 0.64 brings react 17, an upgrade I prefer to do in a separate PR.

How to test

Run the example project as before. Minor caveat is that you must start metro manually.

@oblador oblador requested a review from dannyhw as a code owner May 12, 2021 08:06
Copy link
Member

@dannyhw dannyhw left a comment

Choose a reason for hiding this comment

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

Looks good, I had an issue when running android though, could you check?


FAILURE: Build failed with an exception.

* What went wrong:
Could not initialize class org.codehaus.groovy.runtime.InvokerHelper

__

after all it was a problem with my java_home variable. Looks good to me 👍

Copy link
Member

@dannyhw dannyhw left a comment

Choose a reason for hiding this comment

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

🥇

@dannyhw dannyhw merged commit 19fdc4c into next-6.0 May 12, 2021
@dannyhw
Copy link
Member

dannyhw commented May 12, 2021

thanks for your contribution 🙏

@dannyhw dannyhw deleted the feat/remove-no-hoisting branch July 2, 2021 12:21
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.

None yet

2 participants