-
-
Save mukeshsolanki/1e6657d8d75325575dfd29997bbb1d31 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ❌ | |
@Composable | |
fun HelloWorld(modifier: Modifier = Modifier) { | |
Column(modifier = modifier) { | |
AndroidView(::TextView){ ... } | |
} | |
} | |
// ✅ | |
@Composable | |
fun HelloWorld(modifier: Modifier = Modifier) { | |
Column(modifier = modifier) { | |
Text(...) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment