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

feat: Specify RN version as compiler flag #490

Merged
merged 15 commits into from
Jan 13, 2025
Merged

Conversation

mrousavy
Copy link
Owner

@mrousavy mrousavy commented Jan 13, 2025

Specifies REACT_NATIVE_VERSION as a compiler flag for both CocoaPods (iOS) and Gradle/CMake (Android) build flows. This holds the minor RN version, so e.g. 76.

Also, adds a flag called HAS_REACT_NATIVE that is only present if building in a React Native environment. If not, both flags will be absent.

This can later be used to check if React Native views are supported. Or adopt for NativeScript compatibility (cc @NathanWalker)

Copy link

vercel bot commented Jan 13, 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 13, 2025 1:08pm

@mrousavy mrousavy force-pushed the feat/react-native-flags branch from f50e680 to 609945f Compare January 13, 2025 12:24
@mrousavy mrousavy changed the title feat: Specify RN version in iOS feat: Specify RN version as compiler flag Jan 13, 2025
@mrousavy mrousavy merged commit bbbeeaf into main Jan 13, 2025
18 checks passed
@NathanWalker
Copy link

Thank you for this @mrousavy 🙏

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.

2 participants