Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

_react2.PropTypes is undefined #3

Open
Noitidart opened this issue Feb 15, 2018 · 4 comments
Open

_react2.PropTypes is undefined #3

Noitidart opened this issue Feb 15, 2018 · 4 comments

Comments

@Noitidart
Copy link

I keep getting this error whenever I even just import:

import { FitModal, FitVideo, FitImage } from 'react-native-fit'
@jaydeep-reactnative
Copy link

jaydeep-reactnative commented Aug 1, 2018

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.

@tibbus
Copy link
Owner

tibbus commented Aug 3, 2018

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

@BakedHei
Copy link

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

@fukemy
Copy link

fukemy commented Apr 22, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants