Skip to content

Instantly share code, notes, and snippets.

@kasem-sm
Created February 13, 2022 02:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kasem-sm/b5a4f31c9048ba4df711eccc98bac40b to your computer and use it in GitHub Desktop.
Save kasem-sm/b5a4f31c9048ba4df711eccc98bac40b to your computer and use it in GitHub Desktop.
@Composable
fun MyTextField(
modifier: Modifier = Modifier,
text: String,
onTextChange: (String) -> Unit,
keyboardOptions: KeyboardOptions = KeyboardOptions(),
keyboardActions: KeyboardActions = KeyboardActions()
) {
TextField(
modifier = modifier,
value = text,
onValueChange = onTextChange,
keyboardOptions = keyboardOptions,
keyboardActions = keyboardActions
)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment