title: react-native-video [android] undefined is not an object (evaluating NativeModuels.UIManager.RCTVideo.Constants')
body: <p>I integrated react native to an existing android app, I am trying to use react-native-video component for displaying video on the application.</p>
  
  <ul>
  <li>React-native: 0.42.0</li>
  <li>react-native-video: 1.0.0</li>
  </ul>
  
  <p>I followed the instructions here: <a href="https://github.com/react-native-community/react-native-video" rel="nofollow noreferrer">https://github.com/react-native-community/react-native-video</a></p>
  
  <p>On the MainApplication.java I added this:</p>
  
  <pre><code>import com.brentvatne.react.ReactVideoPackage;
  ....
  @Override
      public List&lt;ReactPackage&gt; getPackages() {
          return Arrays.&lt;ReactPackage&gt;asList(
                  new MainReactPackage(),
                  new ReactVideoPackage()
          );
  }
  </code></pre>
  
  <p>I added this to my settings.gradle (only one in app)</p>
  
  <pre><code>include ':react-native-video'
  project(':react-native-video').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-video/android')
  </code></pre>
  
  <p>In my android/app/build.gradle</p>
  
  <pre><code>compile project(':react-native-video')
  </code></pre>
  
  <p>And on my react native component:</p>
  
  <pre><code>import Video from 'react-native-video';
  ....
  render() {
  return (
    &lt;View&gt;
    &lt;Video source={{uri: 'https://vjs.zencdn.net/v/oceans.mp4'}} resizeMode="cover" repeat={true}  /&gt;
  ....
  </code></pre>
  
  <p>The react native component builds correctly but end up showing this warning on a yellow screen and nothing else:</p>
  
  <pre><code>Possible Unhandled Promise Rejection (id: 0):
               undefined is not an object (evaluating '_reactNative.NativeModules.UIManager.RCTVideo.Constants')
               render@http://localhost:8081/reactnative/wall.bundle?platform=android&amp;dev=true&amp;hot=false&amp;minify=false:46677:73
               http://localhost:8081/reactnative/wall.bundle?platform=android&amp;dev=true&amp;hot=false&amp;minify=false:12555:27
               measureLifeCyclePerf@http://localhost:8081/reactnative/wall.bundle?platform=android&amp;dev=true&amp;hot=false&amp;minify=false:12015:14
               _renderValidatedComponentWithoutOwnerOrContext@http://localhost:8081/reactnative/wall.bundle?platform=android&amp;dev=true&amp;hot=false&amp;minify=false:12554:45
               _renderValidatedComponent@http://localhost:8081/reactnative/wall.bundle?platform=android&amp;dev=true&amp;hot=false&amp;minify=false:12575:78
               performInitialMount@http://localhost:8081/reactnative/wall.bundle?platform=android&amp;dev=true&amp;hot=false&amp;minify=false:12227:55
               mountComponent@http://localhost:8081/reactnative/wall.bundle?platform=android&amp;dev=true&amp;hot=false&amp;minify=false:12130:40
               mountComponent@http://localhost:8081/reactnative/wall.bundle?platform=android&amp;dev=true&amp;hot=false&amp;minify=false:11170:49
               mountChildren@http://localhost:8081/reactnative/wall.bundle?platform=android&amp;dev=true&amp;hot=false&amp;minify=false:11615:56
               initializeChildren@http://localhost:8081/reactnative/wall.bundle?platform=android&amp;dev=true&amp;hot=false&amp;minify=false:9929:41
               mountComponent@http://localhost:8081/reactnative/wall.bundle?platform=android&amp;dev=true&amp;hot=false&amp;minify=false:10012:28
               mountComponent@http://localhost:8081/reactnative/wall.bundle?platform=android&amp;dev=true&amp;hot=false&amp;minify=false:11170:49
               performInitialMount@http://localhost:8081/reactnative/wall.bundle?platform=android&amp;dev=true&amp;hot=false&amp;minify=false:12235:48
               mountComponent@http://localhost:8081/reactnative/wall.bundle?platform=android&amp;dev=true&amp;hot=false&amp;minify=false:12130:40
               mountComponent@http://localhost:8081/reactnative/wall.bundle?platform=android&amp;dev=true&amp;hot=false&amp;minify=false:11170:49
               performInitialMount@http://localhost:8081/reactnative/wall.bundle?platform=android&amp;dev=true&amp;hot=false&amp;minify=false:12235:48
               mountComponent@http://localhost:8081/reactnative/wall.bundle?platform=android&amp;dev=true&amp;hot=false&amp;minify=false:12130:40
               mountComponent@http://localhost:8081/reactnative/wall.bundle?platform=android&amp;dev=true&amp;hot=false&amp;minify=false:11170:49
               performInitialMount@http://localhost:8081/reactnative/wall.bundle?platform=android&amp;dev=true&amp;hot=false&amp;minify=false:12235:48
               mountComponent@http://localhost:8081/reactnative/wall.bundle?platform=android&amp;dev=true&amp;hot=false&amp;minify=false:12130:40
               mountComponent@http://localhost:8081/reactnative/wall.bundle?platform=android&amp;dev=true&amp;hot=false&amp;minify=false:11170:49
               mountChildren@http://localhost:8081/reactnative/wall.bundle?platform=android&amp;dev=true&amp;hot=false&amp;minify=false:11615:56
               initializeChildren@http://localhost:8081/reactnative/wall.bundle?platform=android&amp;dev=true&amp;hot=false&amp;minify=false:9929:41
               mountComponent@http://localhost:8081/reactnative/wall.bundle?platform=android&amp;dev=true&amp;hot=false&amp;minify=false:10012:28
               mountComponent@http://localhost:8081/reactnative/wall.bundle?platform=android&amp;dev=true&amp;hot=false&amp;minify=false:11170:49
               performInitialMount@http://localhost:8081/reactnative/wall.bundle?platform=android&amp;dev=true&amp;hot=false&amp;minify=false:12235:48
               mountComponent@http://localhost:8081/reactnative/wall.bundle?platform=android&amp;dev=true&amp;hot=false&amp;minify=false:12130:40
               mountComponent@http://localhost:8081/reactnative/wall.bundle?platform=android&amp;dev=true&amp;hot=false&amp;minify=false:11170:49
               mountChildren@http://localhost:8081/reactnative/wall.bundle?platform=android&amp;dev=true&amp;hot=false&amp;minify=false:11615:56
               initializeChildren@http://localhost:8081/reactnative/wall.bundle?platform=android&amp;dev=true&amp;hot=false&amp;minify=false:9929:41
               mountComponent@http://localhost:8081/reactnative/wall.bundle?platform=android&amp;dev=true&amp;hot=false&amp;minify=false:10012:28
               mountComponent@http://localhost:8081/reactnative/wall.bundle?platform=android&amp;dev=true&amp;hot=false&amp;minify=false:11170:49
               performInitialMount@http://localhost:8081/reactnati
  </code></pre>
  
  <p>Thanks!</p>