Tcomb-form-native: PropTypes / createReactClass deprecation warning

Created on 1 Jul 2017  路  4Comments  路  Source: gcanti/tcomb-form-native

Version

Tell us which versions you are using:

  • tcomb-form-native v0.6.9
  • react-native v0.45.1

Expected behaviour

No warnings about deprecation

Actual behaviour

Giving deprecation warnings

Steps to reproduce

  1. Install this module
  2. Use a remote debugger

Stack trace and console log

image

It's an easy fix though, just use prop-types module instead

Most helpful comment

propTypes are used in the following files

  • datepicker.ios.js
  • select.ios.js

/cc @alvaromb

All 4 comments

propTypes are used in the following files

  • datepicker.ios.js
  • select.ios.js

/cc @alvaromb

Hi, this is now broken in react 16.0.0-beta-1 released July 26. I would be happy to submit the PR to use the separate proptypes package and not use createClass. Would you be open to that?

Sure!

This should be fixed.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

timdoes picture timdoes  路  4Comments

abdelghafourzguindou picture abdelghafourzguindou  路  4Comments

muthuraman007 picture muthuraman007  路  4Comments

semirturgay picture semirturgay  路  4Comments

scarlac picture scarlac  路  4Comments