This is my OTP screen function to receive and read OTP.
The function has the 2 parameters as shown,
fun OTPScreen(
navController : NavController,
onClick: (mobileNum: String,otp: String) -> Unit,
)
This is my navhost function that navigates to the OTP screen.
Can someone tell me how do I pass the onClick parameter in this case?
composable(
route = Screen.Otpscreen.route,
) {
OTPScreen(navController = navController, onClick = (" "))
}
I'm new to jetpack and functions are always confusing.
Let me know if I need to elaborate further.