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

Uncomment toast,clipboard,netinfo modules in MainReactPackage #45

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions android/src/main/java/com/oney/gcm/MainReactPackage.java
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@
import com.facebook.react.modules.fresco.FrescoModule;
import com.facebook.react.modules.intent.IntentModule;
import com.facebook.react.modules.location.LocationModule;
//import com.facebook.react.modules.netinfo.NetInfoModule;
import com.facebook.react.modules.netinfo.NetInfoModule;
import com.facebook.react.modules.network.NetworkingModule;
import com.facebook.react.modules.storage.AsyncStorageModule;
//import com.facebook.react.modules.toast.ToastModule;
import com.facebook.react.modules.toast.ToastModule;
import com.facebook.react.modules.websocket.WebSocketModule;
import com.facebook.react.uimanager.ViewManager;
import com.facebook.react.views.drawer.ReactDrawerLayoutManager;
Expand All @@ -33,7 +33,7 @@
import com.facebook.react.views.view.ReactViewManager;
import com.facebook.react.views.viewpager.ReactViewPagerManager;
import com.facebook.react.views.webview.ReactWebViewManager;
//import com.facebook.react.modules.clipboard.ClipboardModule;
import com.facebook.react.modules.clipboard.ClipboardModule;

/**
* Package defining basic modules and view managers.
Expand All @@ -44,14 +44,14 @@ public class MainReactPackage implements ReactPackage {
public List<NativeModule> createNativeModules(ReactApplicationContext reactContext) {
return Arrays.<NativeModule>asList(
new AsyncStorageModule(reactContext),
// new ClipboardModule(reactContext),
new ClipboardModule(reactContext),
new FrescoModule(reactContext),
new IntentModule(reactContext),
new LocationModule(reactContext),
new NetworkingModule(reactContext),
// new NetInfoModule(reactContext),
new WebSocketModule(reactContext));
// new ToastModule(reactContext));
new NetInfoModule(reactContext),
new WebSocketModule(reactContext),
new ToastModule(reactContext));
}

@Override
Expand Down