Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Difference in MainActivity.java file. #7

Open
maotora opened this issue Nov 15, 2016 · 3 comments
Open

Difference in MainActivity.java file. #7

maotora opened this issue Nov 15, 2016 · 3 comments

Comments

@maotora
Copy link

maotora commented Nov 15, 2016

Hi,

I have a very different MainActivity.java file and looking at yours made me want to ask if i should change it or the react versions differ and if so, where can i put your configurations?

Here is how my android/app/src/main/java/com/myProjectName/MainActivity.java file looks like.

package com.mygpsproject;

import com.facebook.react.ReactActivity;

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
    protected String getMainComponentName() {
        return "mygpsProject";
    }
}

Thank you :-)

@mohit-pandey
Copy link

@maotora : Hey, seems like new react native have a different configuration, I am also facing the same issue.
Do you have any fix for the same?

Cheers :)

@maotora
Copy link
Author

maotora commented May 8, 2017

@mohit-pandey Hey,
I had to turn to this project.
They have very similar names (can be very confussing) but that lib worked for me.

@HWBN1
Copy link

HWBN1 commented Aug 16, 2017

edit in different paths
../node_modules/react-native/local-cli/link/fixtures/android/0.17/MainActivity.java
../node_modules/react-native/local-cli/link/fixtures/android/0.17/patchedMainActivity.java:

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

No branches or pull requests

3 participants