microsoft / react-native-code-push

React Native module for CodePush
http://appcenter.ms
Other
8.98k stars 1.47k forks source link

ERROR Warning: Component "CodePushComponent" contains the string ref "rootComponent" #2701

Closed indobenua closed 3 months ago

indobenua commented 5 months ago

ERROR Warning: Component "CodePushComponent" contains the string ref "rootComponent". Support for string refs will be removed in a future major release. We recommend using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref in CodePushComponent in RCTView (created by View) in View (created by AppContainer) in RCTView (created by View) in View (created by AppContainer) in AppContainer

My app react-native info installed: 0.74.1

node -v v20.12.2

npm -v 10.5.0

code-push -v 3.0.0

DmitriyKirakosyan commented 5 months ago

@indobenua thank you for the report. Could you please provide more details about your environment and the steps to reproduce the issue?

code-push -v 3.0.0

Did you mean appcenter-cli version 3.0.0? if so, please specify your react-native-code-push version as well. Have you tried using appcenter-cli version 2.*?

fmedinaUtoppia commented 4 months ago
Screenshot 2024-06-05 at 3 53 07 PM

I guess this the reference. This is in CodePush.js from react-native-code-push from node_modules

DmitriyKirakosyan commented 3 months ago

The fix has been released.