Skip to content

Commit 11bd027

Browse files
authored
[C++ TM] Add warning for iOS integration (#4484)
1 parent c0737f6 commit 11bd027

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

docs/the-new-architecture/pure-cxx-modules.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -318,6 +318,14 @@ If you did everything right, your project on the left should look like this:
318318

319319
#### 3. Registering the Cxx Turbo Native Module in your app
320320

321+
:::warning
322+
If your app has some local modules that are written in C++, you would not be able to use the AppDelegate in Swift that we shipped in React Native 0.77.
323+
324+
If your app falls in this category, please skip the migration of the AppDelegate to Swift, and keep using Objective-C++ for your app's AppDelegate.
325+
326+
React Native core is mostly developed using C++ to encourage code sharing between iOS and Android and other platforms. The interoperability between Swift and C++ is not mature nor stable, yet. We are looking into ways to fill this gap and let you migrate to Swift too.
327+
:::
328+
321329
With this last step, we will tell the iOS app where to look for to find the pure C++ Turbo Native Module.
322330

323331
In Xcode, open the `AppDelegate.mm` file and modify it as follows:

website/versioned_docs/version-0.77/the-new-architecture/pure-cxx-modules.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -318,6 +318,14 @@ If you did everything right, your project on the left should look like this:
318318

319319
#### 3. Registering the Cxx Turbo Native Module in your app
320320

321+
:::warning
322+
If your app has some local modules that are written in C++, you would not be able to use the AppDelegate in Swift that we shipped in React Native 0.77.
323+
324+
If your app falls in this category, please skip the migration of the AppDelegate to Swift, and keep using Objective-C++ for your app's AppDelegate.
325+
326+
React Native core is mostly developed using C++ to encourage code sharing between iOS and Android and other platforms. The interoperability between Swift and C++ is not mature nor stable, yet. We are looking into ways to fill this gap and let you migrate to Swift too.
327+
:::
328+
321329
With this last step, we will tell the iOS app where to look for to find the pure C++ Turbo Native Module.
322330

323331
In Xcode, open the `AppDelegate.mm` file and modify it as follows:

0 commit comments

Comments
 (0)