After installing Nuclide on Atom, Watchman and Buck, I've tried to start working with Buck, but due to limited information on how to start using Buck with React Native, I've been having trouble with my project setup.
What I've done so far:
Initialize template react-native project
$ react-native init MyProject
Create empty Buck config file
$ touch .buckconfig
Initialize Buck template for iOS (to have a starting point)
$ buck quickstart --type -ios --dest-dir .
Running the demo app from Buck quickstart
$ buck install --run demo_app_ios
Then I changed the settings on the BUCK file to point to the initial React Native project from step 1. And I also deleted all the files generated from the Buck template (except the BUCK file of course)
When I try to build with buck I get the following error:
fatal error: 'RCTRootView.h' file not found
This is due to Buck not finding the React Native dependencies. I've been trying to add the dependencies in the BUCK file with the directives apple_library() and prebuilt_cxx_library() with no luck.
If somebody can tell me if I'm on the right track, or give me any pointers on how to proceed with my setup, it would be much appreciated