The Native part in React Native can look very scary and intimidated but is does not have to be that way, so in this talk you will see what the most frequent challenges are when working on the native side of React Native and how to conquer them.
{ return "Vibration" } @ReactMethod fun vibrate() { val v = reactApplicationContext.getSystemService(Context.VIBRATOR_SERVICE) as Vibrator v.vibrate() } } Native modules VibrationModule.kt