Skip to content
This repository has been archived by the owner on Oct 26, 2019. It is now read-only.

missing oncreate() on MainActivity.java #4

Open
yusuf987 opened this issue Jul 15, 2018 · 1 comment
Open

missing oncreate() on MainActivity.java #4

yusuf987 opened this issue Jul 15, 2018 · 1 comment

Comments

@yusuf987
Copy link

please see below my MainActivity.java
there is nothing where i can add .addPackage(new ChromeCustomTabsPackage(this)) // <-- Register
i am stuck here please help

package com.koenig.student;

import com.facebook.react.ReactActivity;
import android.content.Intent;
public class MainActivity extends ReactActivity {

    /**
     * Returns the name of the main component registered from JavaScript.
     * This is used to schedule rendering of the component.
     */
        @Override
   public void onNewIntent (Intent intent) {
     super.onNewIntent(intent);
      setIntent(intent);
   } 
    @Override
    protected String getMainComponentName() {
        return "Koenig";
    }
}

@matthewfbenjamin
Copy link

@yusuf987 did you ever figure out how to use this?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants