Added iOS callbacks when iOS triggers an event in JS. Also made an example to show this off.