Check out example codes for "kotlin static method". It will help you in understanding the concepts better.

Code Example 1

class Foo {
  companion object {
     fun a() : Int = 1
  }
}

Foo.a()

Learn ReactJs, React Native from akashmittal.com