Skip to content

Commit

Permalink
example MainActivity add init
Browse files Browse the repository at this point in the history
  • Loading branch information
KenChoi authored and KenChoi committed Mar 1, 2017
1 parent 3543943 commit 33193af
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions example/android/app/src/com/pushdemo/MainActivity.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
package com.pushdemo;

import android.os.Bundle;

import com.facebook.react.*;
import com.facebook.react.modules.core.DefaultHardwareBackBtnHandler;

Expand Down Expand Up @@ -37,6 +39,12 @@ public class MainActivity extends ReactActivity implements DefaultHardwareBackBt
// setContentView(mReactRootView);
// }


@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
JPushInterface.init(this);
}
@Override
protected String getMainComponentName() {
return "PushDemoApp";
Expand Down

0 comments on commit 33193af

Please sign in to comment.