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

fix: unblock build for 0.76 #660

Merged
merged 1 commit into from
Oct 17, 2024
Merged

Conversation

vonovak
Copy link
Contributor

@vonovak vonovak commented Oct 16, 2024

Summary:

the recently released 4.5.4 won't build when installed into a RN 0.76 project, due to breaking changes described in react-native-community/discussions-and-proposals#816

This PR fixes the build in a backward-compatible way, as recommended in the link above

the build failure:

C/C++: /Users/vojta/_dev/expo/node_modules/@react-native-community/slider/android/src/main/jni/../../../build/generated/source/codegen/jni/react/renderer/components/RNCSlider/EventEmitters.h:12:10: fatal error: 'react/renderer/components/view/ViewEventEmitter.h' file not found
C/C++: #include <react/renderer/components/view/ViewEventEmitter.h>
C/C++:          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
C/C++: 1 error generated.
C/C++:

and a bunch more of the same kind

Test Plan:

tested inside my fork at https://github.com/vonovak/react-native-slider/tree/fix/new-arch-issues

I used "react-native-test-app": "^3.10.15", "react-native": "0.76.0-rc.5"

Copy link
Member

@BartoszKlonowski BartoszKlonowski left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for this!

@BartoszKlonowski BartoszKlonowski merged commit e472653 into callstack:main Oct 17, 2024
9 checks passed
@vonovak vonovak deleted the fix/build-76 branch October 17, 2024 13:34
@vonovak
Copy link
Contributor Author

vonovak commented Oct 23, 2024

@BartoszKlonowski can we please get this released soon? 0.76 is right behind the corner.
Appreciate it, thank you :)

@BartoszKlonowski
Copy link
Member

Hello @vonovak!
This will be released on Friday, no worries, the delay is due to me hoping to get some other stuff released in the same go.
But thanks for the interest 👍

@BartoszKlonowski BartoszKlonowski linked an issue Oct 25, 2024 that may be closed by this pull request
vonovak added a commit to expo/expo that referenced this pull request Oct 27, 2024
# Why

to resolve 

callstack/react-native-slider#652
callstack/react-native-slider#660

# How

updated the package

# Test Plan

slider works in bare expo. iOS is smooth, Android is somewhat "jumpy"
which I'll report to the package maintainers

# Checklist

<!--
Please check the appropriate items below if they apply to your diff.
This is required for changes to Expo modules.
-->

- [ ] Documentation is up to date to reflect these changes (eg:
https://docs.expo.dev and README.md).
- [ ] Conforms with the [Documentation Writing Style
Guide](https://github.com/expo/expo/blob/main/guides/Expo%20Documentation%20Writing%20Style%20Guide.md)
- [ ] This diff will work correctly for `npx expo prebuild` & EAS Build
(eg: updated a module plugin).
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.

Multiple File not found error in React Native 0.76.0
3 participants