Check out example codes for "swift how to call a function". It will help you in understanding the concepts better.
Code Example 1
//function trying to be called
func aFunction() {
print("called function")
}
//call function like this
aFunction()
Learn ReactJs, React Native from akashmittal.com