dpa99c / react-native-launch-navigator

A React Native module for launching today's most popular navigation/ride apps to navigate to a destination.
143 stars 34 forks source link

Using the library causes a warning when the application is launched on Android #43

Open wieckowskimateusz opened 9 months ago

wieckowskimateusz commented 9 months ago

Hey. On launch app we getting errors:

  1. new NativeEventEmitter() was called with a non-null argument without the required addListener method.
  2. new NativeEventEmitter() was called with a non-null argument without the required removeListeners method.

Tested on: "react-native": "0.72.6"

Adding bellow methods to RNLaunchNavigatorModule.java resolves the problem:

     @ReactMethod
     public void addListener(String eventName) {}

     @ReactMethod
     public void removeListeners(Integer count) {}