Skip to content

Conversation

andrewsardone
Copy link
Contributor

This builds off of the awesome work from @tjwudi to expand on the embedded app docs when using @CocoaPods.

  • main change: instructs user to create their React JavaScript in a top-level ReactComponent directory as a sibling of their existing app code, and not in the Pods/ directory where third-party dependencies are installed
    • Relevant commit
    • I think this is important since the Pods/ directory should solely be managed by CocoaPods and not include any custom app content
  • Tweaks some language
  • Myriad of minor formatting tweaks

It might be too chatty for people just starting out, but I can see why
people might want it.
Hopefully this helps people how simple the process is!
It doesn’t seem like a good practice to tell people to create their custom
ReactComponent directory inside of the Pods/ directory. The Pods/ directory
should be limited to CocoaPods installed content, and it’s not even
accepted across the board to [check this stuff into git][1]

Therefore, let’s tune the EmbeddableApp tutorial to instruct users to
create a ReactComponent directory at the root of their project. From there,
we’ll start the development server packager to source that directory as
a JS files root. This change also improves starting this packager server,
proxying the command through npm.

[1]: https://github.com/github/gitignore/blob/5883804e6ceb0867e88dc8ca1c7585fa61e40797/Objective-C.gitignore#L20-L26
I think this helps identify classes and code files as opposed to
emphasized prose.
vjeux added a commit that referenced this pull request Mar 31, 2015
Improve EmbeddedApp.md docs wrt location of ReactComponent (also minor formatting)
@vjeux vjeux merged commit 99b2a10 into facebook:master Mar 31, 2015
@vjeux
Copy link
Contributor

vjeux commented Mar 31, 2015

Thanks, looks much better :)

@andrewsardone andrewsardone deleted the aps-embedded-app branch March 31, 2015 21:48
@meetwudi
Copy link
Contributor

meetwudi commented Apr 1, 2015

Thanks! It looks wonderful :) To be honest, I am a iOS newbie. So thanks for your update, learnt a lot!

jfrolich pushed a commit to jfrolich/react-native that referenced this pull request Apr 22, 2020
ayushjainrksh referenced this pull request in MLH-Fellowship/react-native Jul 2, 2020
Greetings component example in procs.md didnn't have enclosing jsx tag and thus failed, this is to fix that.
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.

3 participants