-
Notifications
You must be signed in to change notification settings - Fork 10
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
'RCTView.h' file not found, 'RCTViewManager.h' file not found, etc #2
Comments
Probably an RN versioning issue. Let me make sure that the particle demo app is compatible with the latest RN. |
To run the demo, get the latest source from github (I fixed a few typos in one of the .js files). Then from the command line,
That will create a node_modules folder with a bunch of JS modules, including react-native. That is where the demo project is looking for the missing files. |
excellent. I'll check it out! |
still getting that issue where RCTView, RCTViewManager etc can't be imported: Within the demo's xcode project I tried adding the following header search paths to GPHParticleSystem.xcodeproj: |
it's probably just a header search path issue. with everything I try, i can't seem to reach the React files. I'm no expert at xcode. But basically, if you prepare directions for how to add the package to an existing project where you have to add the files to your libraries, link the libraries, etc, my guess is it will work. This is as opposed to the demo where the xcodeproj is in the demo, etc. If it's setup the standard way where you first have to install the package to an existing app, and then add its corresponding files to xocde which now appear in your own node_modules, then things will likely iron themselves out. |
i figured out the header search paths issue. the issue is that the GPHParticleSystem.xcodeproj is in an usual place relative to your actual project. It's below Example. And the header search path before was: $(SRCROOT)/node_modules/react-native/React It needed to be: $(SRCROOT)/Example/node_modules/react-native/React |
got it completely working! ...i had previously upgraded to React 23, so the final thing i had to do was add React as a peer dependency, and voila, it works! ...very nice my friend. I'm gonna play with it and get back to you. |
Thanks for looking into getting the demo project properly configured. If you would like to open a pull request with your changes, I'd be happy to merge them in. |
Changes I merged in today should fix the example project. Closing this out. If you still have trouble, let us know. |
And then the final errors I'm getting (when running
npm install
) is:All I did was git clone the repo, navigate to the Example and run
npm install
. Well,sudo npm install
because the first time it seemed to have some file access issues.Maybe git clone this yourself to somewhere else your computer and see if it runs properly for you. There seem to be some paths to things only on your file system and not in the repo.
Also, in the readme, some directions for adding various files to Xcode and your build settings would be appreciated. I assume once npm install works, I'll have to do some of that. Really looking forward to using this to animate a background to the logo for a current project.
The text was updated successfully, but these errors were encountered: