React native, error with adding root view

I am trying to use "response-native-popup" in my project, and displaying the popup gave me the error below on the red screen. If I reboot, the message is treated as a warning and the application functions are fine, but the error message appears once in a while. I wonder what the problem is?

An attempt was made to add a root view with an explicit identifier already set. React Native uses the id field to track response tags and overwrites this field. If this is normal, I explicitly rewrite the id field in View.NO_ID before calling addMeasuredRootView.

This is how I used it in the rendering function:

<Popup ref={popup => this.popup = popup }/>

+5
source share
1 answer

If you get something like the screenshot below, try restarting the application by clicking the reload button. I got this error if I made some changes to code that already had some exceptions / errors. I hope this helps, as it worked for me almost every time.

enter image description here

0
source

Source: https://habr.com/ru/post/1269136/


All Articles