Skip to content

Instantly share code, notes, and snippets.

@tsuijten
Created May 9, 2019 11:20
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 tsuijten/9db0122af4578484cb769face61d32c2 to your computer and use it in GitHub Desktop.
Save tsuijten/9db0122af4578484cb769face61d32c2 to your computer and use it in GitHub Desktop.
class ComposeActivity : Activity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContent { CraneWrapper { MyApp() } }
}
@Composable
fun MyApp() {
MaterialTheme {
Text(text = "Hello world!", style = +themeTextStyle { h3 })
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment