Lost reference to "this" keyword in add-on jsx file

I’m attempting to call a method onClick of a button. For some reason, “this” is returning undefined in the method. What can cause this? I’m just scratching my head over here. Trying to run this.getThemeSettings() (which is a method in my class extended from component, but it has no idea what “this” is…not even sure how that’s possible. It works everywhere else in my code.

It’s hard to know without seeing the error within the larger context of the code.

Do you have the repo you are working on somewhere public that the community can take a closer look at?