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

Add guide for using React Native in existing iOS App #546

Merged
merged 5 commits into from
Mar 31, 2015

Conversation

meetwudi
Copy link
Contributor

See #483. I wrote a tutorial on this topic and would like to add it as a guide.


When you are ready to work with Cocoapods, add the following line to `Podfile`. If you don't have one, then create it under the root directory of your project.

pod 'React'
Copy link
Contributor

Choose a reason for hiding this comment

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

use ``` instead of indentation to format code

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Now fixed in b873fd6

Use ``` instead of indentation for code blocks

You should now add container view for React Native component. It can be any **UIView** in your app.

![Container view example](http://7qn8cx.com1.z0.glb.clouddn.com/c37deb761ce048225989ece06cf3d185061c511d-74d3e6b285e1b5cd93153c39fca63c63838b8dbf.png?imageView2/2/h/400/w/400/q/85)
Copy link
Contributor

Choose a reason for hiding this comment

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

Can you add this image in the repo (website/src/react-native/img) this way it won't 404 if this url goes down.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Of course. Just a sec ;)

@vjeux
Copy link
Contributor

vjeux commented Mar 31, 2015

This is really good thanks! Can you use local images and then i'm good pulling it in

@brentvatne
Copy link
Collaborator

👍 great addition to the docs

@iamdustan
Copy link

Could we change the file name from EmbededApps to EmbeddedApps?

@meetwudi
Copy link
Contributor Author

@iamdustan Opps! Look how naughty my fingers were. Will correct the typo soon.

@iamdustan
Copy link

@tjwudi ;) I have a few coworkers who have corrected my spelling plenty. I’ve gotten to be extra careful.

@meetwudi
Copy link
Contributor Author

@vjeux @iamdustan Fixed. See 4040295 and 35bea5f

vjeux added a commit that referenced this pull request Mar 31, 2015
Add guide for using React Native in existing iOS App
@vjeux vjeux merged commit af9f097 into facebook:master Mar 31, 2015
@vjeux
Copy link
Contributor

vjeux commented Mar 31, 2015

Thanks!

@iamdustan
Copy link

👏👏

@kennydee
Copy link
Contributor

👍
Thanks all ! ;)

@Bintong
Copy link

Bintong commented Aug 1, 2016

if no cocoapods how to do

jfrolich pushed a commit to jfrolich/react-native that referenced this pull request Apr 22, 2020
Simek pushed a commit to Simek/react-native that referenced this pull request Aug 31, 2020
* Add ScreenshotManagerTurboModule, but it is not called.

* ...

* Update AppDelegate.mm

* Fix code due to facebook API rename

* Update AppDelegate.mm

* [Pods] Expose boost headers to consumer of RCT-Folly (facebook#1)

* Update AppDelegate.mm

* ScreenshotManagerTurboModule gets called

* reject the promise in takeScreenshot

* ...

* Put TurboModuleRegistry.get call at the right place

* ...

* Successfully took the screenshot

* Remove unnecessary code

* Fix code review comments

* Fix code review comments

* ...

* Fix code review comments

* Fix build break

* Fix build break

* Fix build break

* Update NativeScreenshotManager.js

* Fix build break

* Fix yarn lint errors

Co-authored-by: Eloy Durán <[email protected]>
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.

7 participants