Skip to content

Instantly share code, notes, and snippets.

@ThrowJojo
Last active September 25, 2017 04:20
Show Gist options
  • Save ThrowJojo/6c4922605fec373ee6eaa417a1716831 to your computer and use it in GitHub Desktop.
Save ThrowJojo/6c4922605fec373ee6eaa417a1716831 to your computer and use it in GitHub Desktop.
package com.aproject
import android.app.Activity
import android.content.Intent
import android.os.Bundle
import android.os.PersistableBundle
import android.view.WindowManager
import com.facebook.react.ReactActivity
import com.facebook.react.ReactActivityDelegate
class MainActivity : ReactActivity() {
/**
* Returns the name of the main component registered from JavaScript.
* This is used to schedule rendering of the component.
*/
override fun getMainComponentName(): String? {
return "AProject"
}
override fun onCreate(savedInstanceState: Bundle?, persistentState: PersistableBundle?) {
super.onCreate(savedInstanceState, persistentState)
// No man's land
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment