title: React Native: Module RCTLog is not a registered callable module (calling logIfNoNativeHook)
body: <p>I made a <strong>React Native</strong> package and published it on npm.</p>
  
  <p>The problem is when I run the code as a normal component inside <strong>React Native</strong> app it's work fine with no errors.</p>
  
  <p>When I publish the package on <strong>Npm</strong> and download it to my project as a dependency the app is throwing red screen error.</p>
  
  <p>The error is:</p>
  
  <pre><code>Invariant Violation: Module RCTLog is not a registered callable module (calling logIfNoNativeHook)
  
  __callFunction
      index.bundle?platform=ios&amp;dev=true&amp;minify=false:109413:18
  &lt;unknown&gt;
      index.bundle?platform=ios&amp;dev=true&amp;minify=false:109128:31
  __guard
      index.bundle?platform=ios&amp;dev=true&amp;minify=false:109369:15
  callFunctionReturnFlushedQueue
      index.bundle?platform=ios&amp;dev=true&amp;minify=false:109127:21
  callFunctionReturnFlushedQueue
      [native code]:0
  </code></pre>
  
  <blockquote>
    <p>Note: All the code available on <a href="https://github.com/yamankatby/react-native-progress-overlay" rel="nofollow noreferrer">Github</a>
    and the package is available on <a href="https://www.npmjs.com/package/react-native-progress-overlay" rel="nofollow noreferrer">Npm</a> if you can install it and give me feedback if you get the same error of not also it can be helpful </p>
  </blockquote>