From 8f99d4dbe286b1afd85c11bf560ceeeed5ded13b Mon Sep 17 00:00:00 2001 From: Christian Falch <875252+chrfalch@users.noreply.github.com> Date: Wed, 16 Oct 2024 18:46:57 +0200 Subject: [PATCH] [android] Remove a check that is no longer needed (#535) * Removed a check that is no longer needed We've had some issue with monorepos when resolving the codegen config on Android in other libraries, and found that due to versions no longer in use we could now remove the version test in `react-native-config.js` and always return the component descriptor etc. (The monorepo issue was with using `require.main.require` which will resolve to the calling script and not the module) For reference, here is the same PR in @react-native-community/slider: https://github.com/callstack/react-native-slider/pull/657 * cr: Reverted and simplified change after code review Removed previous change and made the `supportsCodegenConfig` variable true initially * revert: reverted commit - removed last line. --- react-native.config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/react-native.config.js b/react-native.config.js index a1cfbff8..160896e0 100644 --- a/react-native.config.js +++ b/react-native.config.js @@ -1,4 +1,4 @@ -let supportsCodegenConfig = false; +let supportsCodegenConfig = true; try { const rnCliAndroidVersion = require.main.require( '@react-native-community/cli-platform-android/package.json',