How to use `app.root.findByPath`?


#1

Hi, I just have a quick question
What is the layout for app.root.findByPath?

I tried starting like app.root.findByPath('/Game Screen/Score/Digit 2');
but this doesn’t seem to work. any help?


#2

Make sure you’re accessing the correct app. For example, this.app.root.


#3

Isn’t it, this.app.root?


#4

@DeveloperPrime01 Yep, I’ve edited @codebon’s answer. :smile:


#5

Oh Okay. Thought I made a mistake there lol.