Skip to content

Commit

Permalink
android: Use ReactModule annotation from 0.58
Browse files Browse the repository at this point in the history
As react-native 0.58, native modules now need the ReactModule
Java annotation.

PR-URL: #9
Refs: https://github.com/react-native-community/react-native-releases/blob/72dde0d270685f44d2f827544267502dcb0b6235/CHANGELOG.md#058
Reviewed-By: Jaime Bernardo <jaime@janeasystems.com>
  • Loading branch information
staltz authored and jaimecbernardo committed Apr 15, 2019
1 parent 022c47e commit 829ec3a
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
import com.facebook.react.bridge.ReactContextBaseJavaModule;
import com.facebook.react.bridge.ReactMethod;
import com.facebook.react.modules.core.RCTNativeAppEventEmitter;
import com.facebook.react.module.annotations.ReactModule;
import com.facebook.react.bridge.WritableMap;
import com.facebook.react.bridge.ReadableMap;
import com.facebook.react.bridge.ReadableType;
Expand All @@ -25,6 +26,7 @@
import java.util.*;
import java.util.concurrent.Semaphore;

@ReactModule(name = "RNNodeJsMobile")
public class RNNodeJsMobileModule extends ReactContextBaseJavaModule implements LifecycleEventListener {

private final ReactApplicationContext reactContext;
Expand Down

0 comments on commit 829ec3a

Please sign in to comment.