-
Notifications
You must be signed in to change notification settings - Fork 24.4k
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
Conversation
|
||
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' |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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) |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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 ;)
This is really good thanks! Can you use local images and then i'm good pulling it in |
👍 great addition to the docs |
Could we change the file name from |
@iamdustan Opps! Look how naughty my fingers were. Will correct the typo soon. |
@tjwudi ;) I have a few coworkers who have corrected my spelling plenty. I’ve gotten to be extra careful. |
@vjeux @iamdustan Fixed. See 4040295 and 35bea5f |
Add guide for using React Native in existing iOS App
Thanks! |
👏👏 |
👍 |
if no cocoapods how to do |
* 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]>
See #483. I wrote a tutorial on this topic and would like to add it as a guide.