Cherrio LLC
06/21/2023, 9:57 AMImre Kaszab
06/21/2023, 11:03 AMCherrio LLC
06/21/2023, 11:05 AMDima Avdeev
06/22/2023, 12:44 PM/**
* Compose wrapper for native UITextField.
* @param value the input text to be shown in the text field.
* @param onValueChange the callback that is triggered when the input service updates the text. An
* updated text comes as a parameter of the callback
* @param modifier a [Modifier] for this text field. Size should be specified in modifier.
*/
@Composable
fun ComposeUITextField(value: String, onValueChange: (String) -> Unit, modifier: Modifier) {
Dima Avdeev
06/22/2023, 12:45 PM@param modifier a [Modifier] for this text field. Size should be specified in modifier.
Dima Avdeev
06/22/2023, 12:47 PMvar textState = remember{ mutableStateOf("Hello") }
ComposeUITextField(textState.value, {textState.value = it}, Modifier.width(100.dp).height(30.dp))
Dima Avdeev
06/22/2023, 12:48 PMCherrio LLC
06/22/2023, 12:50 PMFrancis Mariano
07/06/2023, 8:46 PMDima Avdeev
07/07/2023, 5:26 AMFrancis Mariano
07/07/2023, 12:08 PM