Brightness.setBrightness() is not a function

I am trying to change brightness with Brightness.setBrightness(1), but I get a TypeError saying that the function doesn’t exist.

I have imported Brightness and Brightness.getBrightnessAsync() works.

Sorry, the docs are a bit off. It should be Brightness.setBrightnessAsync.

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