React Native 0.70.0 iOS RootTag issue Integrating with existing app

This issue has been created since 2022-09-14.

Description

I followed the instructions to integrate React Native in an existing project. For a iOS Swift project
https://reactnative.dev/docs/integration-with-existing-apps

When doing so I get the following issue roottag = 12061. and the number after = keeps increasing. The problem started on the React Native 0.70.0 update.

Please see video for example

Version

0.70.0

Output of npx react-native info

System:
OS: macOS 12.4
CPU: (8) x64 Intel(R) Core(TM) i5-1038NG7 CPU @ 2.00GHz
Memory: 4.64 GB / 16.00 GB
Shell: 5.8.1 - /bin/zsh
Binaries:
Node: 18.9.0 - /usr/local/bin/node
Yarn: 1.22.17 - ~/.yarn/bin/yarn
npm: 8.19.1 - /usr/local/bin/npm
Watchman: 2022.02.07.00 - /usr/local/bin/watchman
Managers:
CocoaPods: 1.11.3 - /usr/local/bin/pod
SDKs:
iOS SDK:
Platforms: DriverKit 21.4, iOS 15.5, macOS 12.3, tvOS 15.4, watchOS 8.5
Android SDK:
API Levels: 23, 28, 29, 30, 31
Build Tools: 30.0.2
System Images: android-29 | Google Play Intel x86 Atom, android-30 | Google APIs Intel x86 Atom_64
Android NDK: Not Found
IDEs:
Android Studio: 2021.1 AI-211.7628.21.2111.8193401
Xcode: 13.4.1/13F100 - /usr/bin/xcodebuild
Languages:
Java: 11.0.11 - /usr/bin/javac
npmPackages:
@react-native-community/cli: Not Found
react: 18.1.0 => 18.1.0
react-native: 0.70.0 => 0.70.0
react-native-macos: Not Found
npmGlobalPackages:
react-native: Not Found

Steps to reproduce

  1. Create a brand new React project
  2. Move existing swift project to iOS folder
  3. pod init
  4. pod install
  5. yarn start to start metro
  6. yarn iOS to run the app on iPhone

Snack, code example, screenshot, or link to a repository

bug.mp4
jerryseigle wrote this answer on 2022-09-14

I can confirm this is an issue. Maybe the documentation is out of date.

In my testing I found the what you have tried works with React Native version 0.68.0 but no longer works with React Native version 0.69.0 or 0.70.0.

mikeHarris85 wrote this answer on 2022-09-15

I am having the same problem. Would be nice if the React Native team could fix this. The documentation to add react native to exist iOS project is not working. @JoshuaGross Is there anything that can be done about this?

More Details About Repo
Owner Name facebook
Repo Name react-native
Full Name facebook/react-native
Language JavaScript
Created Date 2015-01-09
Updated Date 2022-10-07
Star Count 105180
Watcher Count 3671
Fork Count 22481
Issue Count 2230

YOU MAY BE INTERESTED

Issue Title Created Date Comment Count Updated Date
ValidationFailed not set to true when unit testing 4 2022-09-14 2022-09-24
Bump to sequelize 6.5.0 crashes app 0 2021-02-13 2022-08-19
kor-input controlled component 3 2021-01-29 2022-09-15
Thoughts on timer API 0 2021-08-26 2022-08-01
SwapList: Search results in swaplist or listview contains mismatched items when filtering 6 2022-03-21 2022-09-26
Suggest developing and refining https://github.com/xelaj/mtproto together 1 2022-06-13 2022-09-26
where is the changelog ? 2 2021-12-31 2022-10-06
feature request: headless mode for automation/coworking/education (like a chromedriver) 0 2021-12-29 2022-09-03
wont stop as a user thread keeps alive 1 2021-02-26 2022-08-01
Security breach: Unauthorized config change 7 2022-08-10 2022-09-29
How to fit this in CustomScrollView 0 2022-08-20 2022-09-19
Symfony\Component\Debug\Exception\FatalThrowableError in POST /forms/preview/24 0 2022-06-30 2022-09-21
Problems Compiling Firmware 2 2022-02-07 2022-09-20
带权重的随机选择算法 :: labuladong的算法小抄 33 2022-02-05 2022-08-28
构造回文的最小插入次数 :: labuladong的算法小抄 5 2022-02-05 2022-09-28
对动态规划进行降维打击 :: labuladong的算法小抄 10 2022-02-05 2022-09-23
一行代码就能解决的算法题 :: labuladong的算法小抄 10 2022-02-05 2022-09-23
“Hourly contribution” stats are adjusted by time zone. 3 2022-01-01 2022-09-09
RFE: add support for SECCOMP_FILTER_FLAG_WAIT_KILLABLE_RECV (Linux 5.19) 0 2022-09-01 2022-09-29
please update to python3.8 1 2021-08-30 2022-07-18
MTCNN head detection 0 2021-05-18 2022-09-27
Add automatic system theme detection 0 2021-04-19 2022-09-13
Move Headers to Second Row 3 2020-11-29 2022-09-11
Stacking race and grid objects with stacks() causes member names to be unexpected. 10 2021-10-30 2022-09-24
component response code generates a custom type instead of int 1 2022-06-07 2022-09-28
Skip check of variables defined by macros. 0 2021-10-01 2022-09-26
Tab sets description to the content layout 0 2021-04-30 2022-09-19
Duplicate frontslashes 5 2021-02-15 2022-10-05
Extra flags in cartridge --help 0 2021-08-24 2022-10-02
Kernel Panic when VM is running 12 2022-04-08 2022-10-05
Container scaling documentation must be improved including examples as well. 0 2021-10-14 2022-09-16
Backtracing support checks do not work 0 2021-04-20 2022-09-15
Synchronized calls to Exporter::Export and Exporter::Shutdown. 0 2021-12-20 2022-09-22
Timeout when doing `gatsby develop` 6 2021-01-07 2022-09-26
Does not save multiple terms in bulk 1 2018-09-20 2022-09-26
Master branch permission control 1 2021-11-30 2022-10-03
Use bounding box/sphere-based directional shadow splits instead of view depth 6 2022-02-02 2022-09-02
CFP: Cilium Cli/Node agent BGP verification support 0 2022-07-26 2022-07-24
`"//` was incorrectly converted to `"/` 8 2021-01-01 2022-09-30
The fpt.proto hasn't a primitive to upload files 1 2021-02-18 2022-09-01
Bug: no way to disable a timestamp. Add an option to disable timestamp and make timestamp as an opt-in option (not opt-out) 4 2022-05-21 2022-10-03
New report formats 1 2020-03-08 2021-12-02
Version 0.6.1 release notes 2 2021-02-17 2022-09-28
nacos服务端1.4.2版本,SpringCloud nacos 2.2.6.RELEASE 无法动态刷新配置 5 2022-03-03 2022-07-31
[use]:jar包中的assets文件没有被打包进apk 4 2019-03-22 2022-09-30
Feature Request: Support SSH based remote url 2 2019-04-15 2022-09-30
Build time error(debuge mode) 0 2022-01-14 2022-10-04
`DefaultDateTypeAdapterTest` fails on JDK 8 and 17 0 2022-09-23 2022-10-05
[Bug] #2650 is still present 1 2022-02-25 2022-09-24
[PAGE ISSUE]: 'Binding to native code using dart:ffi' 12 2021-10-24 2022-09-30