-
Notifications
You must be signed in to change notification settings - Fork 191
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
fix: typo in cmakeListsPath for turbo native modules #629
Conversation
In the issue #627, It seems I tried to correct that by editing the template. |
Oh, I see I've made formatting error. I've fixed it again. Sorry. |
packages/create-react-native-library/templates/native-library-mixed/react-native.config.js
Outdated
Show resolved
Hide resolved
packages/create-react-native-library/templates/native-library-new/react-native.config.js
Outdated
Show resolved
Hide resolved
packages/create-react-native-library/templates/native-view-mixed/react-native.config.js
Outdated
Show resolved
Hide resolved
packages/create-react-native-library/templates/native-view-new/react-native.config.js
Outdated
Show resolved
Hide resolved
Thanks a ton for sending this! I totally passed the fact we have a local template option. I've made some changes, let's see if CI passes and we can merge this! |
packages/create-react-native-library/templates/native-library-mixed/react-native.config.js
Outdated
Show resolved
Hide resolved
packages/create-react-native-library/templates/native-library-new/react-native.config.js
Outdated
Show resolved
Hide resolved
packages/create-react-native-library/templates/native-view-mixed/react-native.config.js
Outdated
Show resolved
Hide resolved
packages/create-react-native-library/templates/native-view-new/react-native.config.js
Outdated
Show resolved
Hide resolved
Looks like some options fails but this only happens on CI, some specific templates, and looks like this is a known problem in community CLI react-native-community/cli#2498. So this should be good to merge. |
Thank you a lot!! Hope you have a nice day! 👍 |
Summary
It fixes #627, as we were having the same issue in our react native project.
When opting in Turbo Native Modules or Fabric Views,
cmakeListPath
in generatedreact-native.config.js
was not consistent with the hierarchy generated by CodeGen.This fix corrects the path as stated by document.
If my fix isn't correct, feel free to correct me.
Thank you.
Test plan
npx react-native run-android
to validate the fix was correct.