react-native-fit icon indicating copy to clipboard operation
react-native-fit copied to clipboard

_react2.PropTypes is undefined

Open Noitidart opened this issue 7 years ago • 4 comments

I keep getting this error whenever I even just import:

import { FitModal, FitVideo, FitImage } from 'react-native-fit'

Noitidart avatar Feb 15 '18 19:02 Noitidart

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.

jaydeep-reactnative avatar Aug 01 '18 09:08 jaydeep-reactnative

This was developed for an old version of react-native. For now it's not supported for the new versions.

tibbus avatar Aug 03 '18 05:08 tibbus

@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.

BakedHei avatar Dec 21 '18 23:12 BakedHei

ok i got a lots of problems when test that library, lucky saw lasted update from. 5 years ago then i removed that shit

fukemy avatar Apr 22 '22 03:04 fukemy