jsb.reflection works well inside a component. Does anyone knows how to use jsb.reflection in a plain js module? What is needed to require? I got message “ReferenceError: jsb is not defined” when try to use it.
My mistake. I should run on a device, not a simulator.