Skip to content

Commit 8f99d4d

Browse files
authored
[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: callstack/react-native-slider#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.
1 parent 2c827b1 commit 8f99d4d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

react-native.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
let supportsCodegenConfig = false;
1+
let supportsCodegenConfig = true;
22
try {
33
const rnCliAndroidVersion = require.main.require(
44
'@react-native-community/cli-platform-android/package.json',

0 commit comments

Comments
 (0)