Closed junosuarez closed 6 years ago
The upstream dependency can be fixed using this alias., but react-primitives itself seems to be using old-style React.createClass
calls which don't work in React 16.
TypeError: React.createClass is not a function
node_modules/react-primitives/lib/modules/Touchable.js:77
74 |
75 |
76 | // eslint-disable-next-line react/prefer-es6-class
> 77 | return React.createClass({
78 | displayName:'Touchable',
79 | propTypes:{
80 | accessible:PropTypes.bool,
Any suggestions for how to overcome this?
react-primitives should change to use create-react-class
, i think.
@js-n I have upgraded to 0.4.4, but the problem still persists. I'm using the {StyleSheet} from "react-primitives".
I get the original error message as reported by OP.
We are not using the latest version of react-native-web
(0.2.0). We are still using "react-native-web": "0.0.x",
.
Currently this is blocked on an upstream dependency,
react-native-web
- they're tracking this at https://github.com/necolas/react-native-web/issues/364When trying to run against react@16.0.0-beta.5, it looks like: