react-native-fit
                                
                                
                                
                                    react-native-fit copied to clipboard
                            
                            
                            
                        _react2.PropTypes is undefined
I keep getting this error whenever I even just import:
import { FitModal, FitVideo, FitImage } from 'react-native-fit'
                                    
                                    
                                    
                                
As shown under in fitVideo.component.js import PropTypes and in Video.js separate Component and PropTypes.
Existing: In Video.js import React, { Component, PropTypes } from 'react';
Make changes: In fitVideo.component.js import PropTypes from "prop-types";
In Video.js import React, { Component } from 'react'; import PropTypes from "prop-types";
Notice: npm install --save prop-types if PropTypes not installed.
This was developed for an old version of react-native. For now it's not supported for the new versions.
@justjd1992 Fixed that one error, but got anotherone after that "undefined is not an object (evaluating '_reactNative.NativeModules.UIManager.RCTVideo.Constants')
I'm using Expo.
ok i got a lots of problems when test that library, lucky saw lasted update from. 5 years ago then i removed that shit