Check out example codes for "cannot find symbol final TextView textView = root.findViewById(R.id.text_home);". It will help you in understanding the concepts better.

Code Example 1

//Define a text view
TextView myTextView;

//findViewById function
myTextView = (TextView) findViewById(R.id.textView);

Learn ReactJs, React Native from akashmittal.com