'React native Video shows (evaluating 'RCTVideoInstance.Constants')

I'm trying to switch from expo-av to react-native-video due to a problem with expo that makes some videos to be missing from the flatlist after rendering them,I saw some similar topics over stack but no one seems to found the answer to this issue so I try to ask,also I used the bellow code to render my videos in a flatlist, the flatlist does work but for some reason, after I run this it shows me this error

TypeError: null is not an object (evaluating 'RCTVideoInstance.Constants')

This error is located at:
    in Video (at Education.js:186)
    in RCTView (at View.js:34)

Any suggestion will be appreciated

<Video
                    source={{ uri: item.video }} // Can be a URL or a local file.
                    ref={(ref) => {
                      this.player = ref;
                    }}
                    resizeMode="cover"
                    // ref={video} // Store reference
                    controls
                    onBuffer={Buffering} // Callback when remote video is buffering
                    onError={VideoError} // Callback when video cannot be loaded
                    style={{
                      width: "90%",
                      height: 150,
                      alignSelf: "center",
                    }}
                  />


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source