Skip to content

Instantly share code, notes, and snippets.

@devDeejay
Created September 19, 2021 19:28
Show Gist options
  • Save devDeejay/eedc0584efc1db0f97cc884f6357e7eb to your computer and use it in GitHub Desktop.
Save devDeejay/eedc0584efc1db0f97cc884f6357e7eb to your computer and use it in GitHub Desktop.
class MainActivity : ComponentActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
// This is the block where we will call our
// Composable Functions
setContent {
GreetUser("DEEJAY")
}
}
@Composable
fun GreetUser(name: String) {
Text(text = "Hello $name!")
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment