https://kotlinlang.org logo
Title
u

user

06/27/2022, 9:11 AM
How can I pass variable of "phoneNumberState.value" from ScreenA to ScreenB in jetpack compose? I have one variable in screen A as val phoneNumberState = remember { mutableStateOf("") } and I want to pass this argument to screen B, so I try to do it on internet, there is some example, I confused how to apply, is there easy way for it? navigation: @OptIn(ExperimentalPagerApi::class) @Composable fun Navigation( startDestination: String ) { val navController = rememberNavController() NavHost(navController = navController, startDestination = startDestination) { composable("screenA"...