Skip to content

Instantly share code, notes, and snippets.

@ThrowJojo
Created September 25, 2017 04:20
Show Gist options
  • Save ThrowJojo/dbfaf58d22a265246c18d45f8d048288 to your computer and use it in GitHub Desktop.
Save ThrowJojo/dbfaf58d22a265246c18d45f8d048288 to your computer and use it in GitHub Desktop.
ReactActivityDelegate example
inner class MainActivityDelegate(val activity: Activity, val mainComponentName: String): ReactActivityDelegate(activity, mainComponentName) {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
// Do what you need to do
}
override fun onNewIntent(intent: Intent?): Boolean {
// Do what you need to do
return super.onNewIntent(intent)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment