react-native-website icon indicating copy to clipboard operation
react-native-website copied to clipboard

Objective-C's integration documentation was outdated

Open ziggear opened this issue 1 year ago • 0 comments

Description

In this discussion with @cipolleschi @okwasniewski , I think the both Objective-C and Swift version of Integration with Existing App - Configuring CocoaPods dependencies part was outdated.

What is the problem?

  1. In this discussion, developers who follow the instructions in this section will mistakenly add pods to their Podfile instead of using the use_react_native! function.
  2. The Swift's integation guide had a 404 issue (#4170) , is resolved in the "Next" version, but it still seems to persist in version "0.74". When people first open this documentation, the top navigation bar's version filter defaults to "0.74" instead of "Next", which can cause confusion.

Ultimately, your Podfile should look something similar to this: Podfile Template

How can we address it?

Please review and update the 'Integration with Existing Apps' section of the documentation, including both the Objective-C and Swift versions.

Why is it important?

I believe that there are still many projects that have not yet integrated with React Native, especially some are written in Objective-C. I hope that the 'Integration with Existing Apps' section of the guide can be kept up-to-date, so that more people can easily adopt React Native. Thank you very much!

Who needs this?

iOS Developers

When should this happen (use version numbers if needed)?

N/A

ziggear avatar Aug 07 '24 14:08 ziggear