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: Import react-native version from ReactNativeVersion.h #505

Merged
merged 3 commits into from
Jan 21, 2025

Conversation

mrousavy
Copy link
Owner

This avoids the need of an extra step in .podspec, and build.gradle/CMakeLists.txt for the user.

The extra step would've been a node require.resolve("react-native/package.json") script, which could've caused problems with monorepos, node not being found, require not being resolved, and so on.

This is now more solid - we import the ReactNativeVersion.h header from RN Core, and if it's not there we dont have react-native.
This now holds the true native RN version thanks to facebook/react-native#48813.

Copy link

vercel bot commented Jan 21, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Skipped Deployment
Name Status Preview Comments Updated (UTC)
nitro-docs ⬜️ Skipped (Inspect) Jan 21, 2025 1:43pm

@mrousavy mrousavy changed the title feat: Import react-native version from ReactNativeVersion.h chore: Import react-native version from ReactNativeVersion.h Jan 21, 2025
@mrousavy mrousavy merged commit 35a4efb into main Jan 21, 2025
17 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.

1 participant