react-native-swipe-hidden-header icon indicating copy to clipboard operation
react-native-swipe-hidden-header copied to clipboard

issue proptypes

Open bamaarintoko opened this issue 6 years ago • 2 comments

i got issue from propType... i delete it for solve the issue

bamaarintoko avatar Mar 09 '18 10:03 bamaarintoko

+1 same problem! same solution!

edgargrs avatar Jun 29 '18 16:06 edgargrs

Hi everyone,

The problem is related to importing PropTypes correctly, since this component was last updated 2 years ago.

Instead of importing PropTypes like this:

import React, { Component, PropTypes } from 'react';

I did it this way and it solved the problem:

import React, { Component } from 'react';
import PropTypes from 'prop-types';

Gustavomagalhaes avatar Jul 18 '19 12:07 Gustavomagalhaes