title: Error : Native Module RNGeocoder tried to override RNGeocoderModule when I use the react-native-geocoder package in react native
body: <p>I am building a React Native application and In this application, I need to get the location of a Particular area that is Street Address, City and Country. </p>
  
  <p>I am trying to use react-native-geocoder package to get this information. </p>
  
  <p>When I follow the tutorial and edit my MainApplication.java, setting.gradle, build.gradle and my codes as;</p>
  
  <p>The link to the tutotiral and github repo of the package
  <a href="https://github.com/devfd/react-native-geocoder" rel="nofollow noreferrer">https://github.com/devfd/react-native-geocoder</a></p>
  
  <pre><code>_getLocationAsync = async () =&gt; {
  
      var NY = {
            lat: 40.7809261,
            lng: -73.9637594
          };
      Geocoder.geocodePosition(NY).then(res =&gt; {
       this.setState({
         locationObj: res
       });
       console.log(res)
      // res is an Array of geocoding object (see below)
      })
     .catch(err =&gt; console.log(err))
  
      this.setState({
          procesingLocation: false,
      });   
  };
  </code></pre>
  
  <p>I get the following Error on screen of my emulator;</p>
  
  <p><strong><em>native module RNGeocoder tried to override RNGeocoderModule. Check the getPackages() method in MainApplication.java, it might be that module is being created twice . if this was your intention set canoverrideExistingModule=true</em></strong> </p>
  
  <p>My MainApplication.java looks has the following codes;</p>
  
  <pre><code>import com.devfd.RNGeocoder.RNGeocoderPackage;
  
  @Override
  protected List&lt;ReactPackage&gt; getPackages() {
    @SuppressWarnings("UnnecessaryLocalVariable")
    List&lt;ReactPackage&gt; packages = new PackageList(this).getPackages();
    // Packages that cannot be autolinked yet can be added manually here, for example:
    // packages.add(new MyReactNativePackage());
    packages.add(new RNGeocoderPackage());
    return packages;
  }
  </code></pre>
  
  <p>Please any help on this will be appreciated.</p>