Can't find variable: document


I am want to use a div in my app. So when I am trying to get the id, it shows: “Can’t find variable: document”. Below is the code:

In component did mount I want to get the Id as:

Is there is another way to use the div in react native.

Please help…

This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.