documentation issue? seems all setup to run a react native project, but I don't have the toolbars I noticed in the f8 nuclide keynote #31
Comments
The current release we have access to does not include the deeper react/react-native hooks that are visible in that video. From the README:
|
Great thanks. |
ok, got it, thx. |
Any eta when the react native packages will be landing? |
+1 on ETA. :) |
+1 ETA please! :) Bump |
👍 |
what is +1 ETA ?????????????? |
+1 |
Hm, I just took a quick look at the video and a lot of functionality is already there - albeit, really poorly documented. We have some release issues (like how do we deal with a ton of pre-existing Nuclide packages) to sort out before we publish UP to the atom registry, but it's totally usable right now by cloning -> npm install -> apm link. |
Thanks for the reply @zertosh. I did the clone -> npm install -> apm link and still don't see the build and simulator buttons at the top of the UI as shown at this point in the video (https://youtu.be/X0VH78ye4yY?t=1383). Looking at my ~/.atom/packages directory, I then had the one link to the nuclide clone and then many other nuclide-* directories. I then removed all of them except of the ~/.atom/packages/nuclide link and restarted atom. Still no luck on the build and simulator buttons. Clicking the Toggle Build Toolbar does nothing (besides moving the tabs down one pixel). |
Your build needs to be setup with Buck |
I don't think so, looks like only the old version is available 😞. To check your setup you should be able to do the buck quickstart (for iOS, Android, or both) and it will create a working app that builds with Buck. Opening that directory with Nuclide should show the build toolbar and building from within Nuclide should work. Note that the quickstart isn't a RN app though. |
I know the React Native support was being rewritten a bit ago to be more robust (for example, integrating better with the RN packager), which is why Facebook hasn't been pushing Nuclide + Buck as the default/best way to build React Native apps yet. |
Thanks for the reply Christian. What will be the best way to build RN apps? Am I running down a rabbit hole getting this setup? |
It is my understanding that in the near future Buck+Nuclide will be the preferred (but not the only) way to build RN apps[1]. For now I would follow the generic RN directions, which means you'll have to juggle Xcode, Chrome, and an editor like Nuclide unfortunately (that is, no Buck integration). Nuclide does provide a lot of value in this situation over a stock Atom or a Sublime or Xcode-only, as it has all the Flow/JS goodies (click to symbol, autocomplete, etc) and talks to clang to get the same goodies for ObjC. The main thing it doesn't have is rebuilding native code automatically in Nuclide (as that requires Buck), which is why you'd need Xcode to press the build button or use Nuclide even has a native debugger UI so that isn't needed in Xcode (ObjC) or Chrome (JS), though I am not sure it is turned on yet for everyone. @mkonicek and @jamesgpearce may have more info or suggestions! [1] Note: I left Facebook earlier this year so I don't know what is going on internally these days. |
Looks like @davidaurelio and @natthu did most of the RN Buck stuff and may be able to add more color too. |
@LegNeato Thanks for the info! This is really helpful. 👍 |
Has anyone got an example BUCK file for building a react-native app? |
I'm having the same issue as @rogchap , any pointers would be appreciated |
I'm not sure if not everything is available in the master branch, but when I open my react native project with the additional
"nuclide": {
"packageType": "Node",
"testRunner": "npm"
},
added to the package.json
I don't see the toolbars (select simulator, play, ...), or any options to get them to show up.
https://youtu.be/X0VH78ye4yY?t=1383
I know that the packages for nuclide are installed because I checked them in the atom installed packages pane.
My goal is to replicate the presentation to build and test react-native without xcode.
The text was updated successfully, but these errors were encountered: