Load custom native component in react native using expo kit : <p>Im trying to load a custom Android WebView to be able to upload files using html file inputs (by default Android webview wont work with input file). <a href="https://github.com/hushicai/ReactNativeAndroidWebView" rel="noreferrer">Im using this code</a>, the only difference is that im using expo kit, so my MainApplication.java is different (inherits from another class by default):</p>

<pre><code>public class MainApplication extends MultiDexApplication {

    // Needed for `react-native link`
    public List&lt;ReactPackage&gt; getPackages() {
      return Arrays.&lt;ReactPackage&gt;asList(
        new MainReactPackage(),
        new CustomWebViewPackage()
    );
  }

  @Override
  public void onCreate() {
      super.onCreate();
      SoLoader.init(this, /* native exopackage */ false);
  }
}
</code></pre>

<p>Basically what the git code do is override the default react native webview to make it use the CustomWebView.java in Android, using requireNativeComponent with this code (<a href="https://github.com/hushicai/ReactNativeAndroidWebView/blob/master/src/CustomWebView.android.js" rel="noreferrer">this is on CustomWebView.android.js</a>):</p>

<pre><code>var RCTWebView = requireNativeComponent('CustomWebView', WebView, {
nativeOnly: {
    messagingEnabled: PropTypes.bool,
},
</code></pre>

<p>});</p>

<p>But when i run the application using exp start and navigate to the screen that has the CustomWebView i receive this error:</p>

<p><a href="https://i.stack.imgur.com/Ep933.png" rel="noreferrer"><img src="https://i.stack.imgur.com/Ep933.png" alt="enter image description here"></a></p>

<p>Summarizing the problem is that my custom native component is not being read by React Native. Can someone help me please?</p>
